Issue #192 - Trims and Rotary encoders buttons added to the switches
list
This commit is contained in:
@@ -253,9 +253,9 @@ void rotencInit();
|
||||
void rotencEnd();
|
||||
|
||||
#if ROTARY_ENCODERS > 0
|
||||
#define rotencDown() (!(PIOB->PIO_PDSR & 0x40))
|
||||
#define REA_DOWN() (!(PIOB->PIO_PDSR & 0x40))
|
||||
#else
|
||||
#define rotencDown() 0
|
||||
#define REA_DOWN() (0)
|
||||
#endif
|
||||
|
||||
// Debug driver
|
||||
|
||||
@@ -115,7 +115,7 @@ uint32_t readTrims()
|
||||
|
||||
uint8_t keyDown()
|
||||
{
|
||||
return (~readKeys() & 0x7E) || rotencDown();
|
||||
return (~readKeys() & 0x7E) || REA_DOWN();
|
||||
}
|
||||
|
||||
void readKeysAndTrims()
|
||||
@@ -123,7 +123,7 @@ void readKeysAndTrims()
|
||||
register uint32_t i;
|
||||
|
||||
#if ROTARY_ENCODERS > 0
|
||||
keys[BTN_REa].input(rotencDown(), BTN_REa);
|
||||
keys[BTN_REa].input(REA_DOWN(), BTN_REa);
|
||||
#endif
|
||||
|
||||
uint8_t enuk = KEY_MENU;
|
||||
|
||||
Reference in New Issue
Block a user