#elif defined(__MKL26Z64__) | #elif defined(__MKL26Z64__) | ||||
#define CORE_NUM_TOTAL_PINS 27 | #define CORE_NUM_TOTAL_PINS 27 | ||||
#define CORE_NUM_DIGITAL 27 | #define CORE_NUM_DIGITAL 27 | ||||
#define CORE_NUM_INTERRUPT 18 | |||||
#define CORE_NUM_INTERRUPT 24 // really only 18, but 6 "holes" | |||||
#define CORE_NUM_ANALOG 13 | #define CORE_NUM_ANALOG 13 | ||||
#define CORE_NUM_PWM 10 | #define CORE_NUM_PWM 10 | ||||
#endif | #endif |
if (!manual_mode) usb_joystick_send(); | if (!manual_mode) usb_joystick_send(); | ||||
} | } | ||||
inline void hat(int dir) { | inline void hat(int dir) { | ||||
uint32_t val; | |||||
uint32_t val = 0; | |||||
if (dir < 0) val = 15; | if (dir < 0) val = 15; | ||||
else if (dir < 23) val = 0; | else if (dir < 23) val = 0; | ||||
else if (dir < 68) val = 1; | else if (dir < 68) val = 1; |