Skip to content

Commit 29df593

Browse files
committed
#if EIC handlers; turn off rotaryio in pirkey for space reasons
1 parent 2528b67 commit 29df593

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/atmel-samd/boards/pirkey_m0/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ LONGINT_IMPL = NONE
1313
CIRCUITPY_ANALOGIO = 0
1414
CIRCUITPY_MATH = 0
1515
CIRCUITPY_NEOPIXEL_WRITE = 0
16+
CIRCUITPY_ROTARYIO = 0
1617
CIRCUITPY_RTC = 0
1718
CIRCUITPY_SAMD = 0
1819
CIRCUITPY_USB_MIDI = 0

ports/atmel-samd/eic_handler.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ void set_eic_handler(uint8_t channel, uint8_t eic_handler) {
4040
void shared_eic_handler(uint8_t channel) {
4141
uint8_t handler = eic_channel_handler[channel];
4242
switch (handler) {
43+
#if CIRCUITPY_PULSEIO
4344
case EIC_HANDLER_PULSEIN:
4445
pulsein_interrupt_handler(channel);
4546
break;
47+
#endif
4648

49+
#if CIRCUITPY_ROTARYIO
4750
case EIC_HANDLER_INCREMENTAL_ENCODER:
4851
incrementalencoder_interrupt_handler(channel);
4952
break;
53+
#endif
5054

5155
default:
5256
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy