Hi there,
When trying to compile the following line:
I2CADRESS = 0b101 | (ADR1 << 1) | (ADR2 << 2) | (ADR3 << 3) | (ADR4 << 4)
the compiler gives me the following warnigs (but seems able to continue to compile)
"Warning Value out of range [5:0...1]"
I understand this as "The value of bit 5 is not between 0 and 1"
I2CADRESS is defined as byte
ADR1..ADR4 are aliases on input pins (on which DIP-SWITCHES are connected to choose the adress) Ex: alias ADR1 is pin_c7
I am using a PIC16F1768 for this project.
Any idea how to avoid that warning ?