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:
maxim.karban@gmail.com
2012-05-23 09:12:06 +00:00
parent 714bbf4fa2
commit f9673e3b8b
2 changed files with 8 additions and 17 deletions
+3 -10
View File
@@ -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 ;