EXTRA_ROTARY_ENCODERS changed as:
REb - left on same place - not moving to REa REa reused as UART function 3 encoders from daughter board becomes as REa, REc, REd push buttons sending from all 3 additional encoders but decodes only from REa
This commit is contained in:
+3
-10
@@ -2503,24 +2503,17 @@ ISR(INT3_vect)
|
||||
}
|
||||
#endif //EXTRA_ROTARY_ENCODERS
|
||||
|
||||
#if !defined(EXTRA_ROTARY_ENCODERS)
|
||||
#define ENC_B_ID 1
|
||||
#else
|
||||
#define ENC_B_ID 0
|
||||
#endif
|
||||
|
||||
|
||||
ISR(INT5_vect)
|
||||
{
|
||||
uint8_t input = PINE & 0b01100000;
|
||||
if (input == 0 || input == 0b01100000) incRotaryEncoder(ENC_B_ID, +1);
|
||||
if (input == 0 || input == 0b01100000) incRotaryEncoder(1, +1);
|
||||
}
|
||||
ISR(INT6_vect)
|
||||
{
|
||||
uint8_t input = PINE & 0b01100000;
|
||||
if (input == 0 || input == 0b01100000) incRotaryEncoder(ENC_B_ID, -1);
|
||||
if (input == 0 || input == 0b01100000) incRotaryEncoder(1, -1);
|
||||
}
|
||||
#endif
|
||||
#endif //PCBV4
|
||||
|
||||
#if !defined(PCBARM)
|
||||
extern unsigned char __bss_end ;
|
||||
|
||||
Reference in New Issue
Block a user