10 #include <util/delay.h>
13 #define ZUMO_32U4_BUTTON_A 14
18 #define ZUMO_32U4_BUTTON_B IO_D5
21 #define ZUMO_32U4_BUTTON_C 17
46 virtual bool isPressed()
49 FastGPIO::PinLoan<ZUMO_32U4_BUTTON_B> loan;
50 FastGPIO::Pin<ZUMO_32U4_BUTTON_B>::setInputPulledUp();
52 return !FastGPIO::Pin<ZUMO_32U4_BUTTON_B>::isInputHigh();
70 virtual bool isPressed()
73 FastGPIO::PinLoan<ZUMO_32U4_BUTTON_C> loan;
74 FastGPIO::Pin<ZUMO_32U4_BUTTON_C>::setInputPulledUp();
76 return !FastGPIO::Pin<ZUMO_32U4_BUTTON_C>::isInputHigh();