#if EIC handlers; turn off rotaryio in pirkey for space reasons
This commit is contained in:
parent
2528b67e77
commit
29df5930dd
@ -13,6 +13,7 @@ LONGINT_IMPL = NONE
|
||||
CIRCUITPY_ANALOGIO = 0
|
||||
CIRCUITPY_MATH = 0
|
||||
CIRCUITPY_NEOPIXEL_WRITE = 0
|
||||
CIRCUITPY_ROTARYIO = 0
|
||||
CIRCUITPY_RTC = 0
|
||||
CIRCUITPY_SAMD = 0
|
||||
CIRCUITPY_USB_MIDI = 0
|
||||
|
@ -40,13 +40,17 @@ void set_eic_handler(uint8_t channel, uint8_t eic_handler) {
|
||||
void shared_eic_handler(uint8_t channel) {
|
||||
uint8_t handler = eic_channel_handler[channel];
|
||||
switch (handler) {
|
||||
#if CIRCUITPY_PULSEIO
|
||||
case EIC_HANDLER_PULSEIN:
|
||||
pulsein_interrupt_handler(channel);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if CIRCUITPY_ROTARYIO
|
||||
case EIC_HANDLER_INCREMENTAL_ENCODER:
|
||||
incrementalencoder_interrupt_handler(channel);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user