@@ -108,7 +108,7 @@ | |||
#elif defined(__MKL26Z64__) | |||
#define CORE_NUM_TOTAL_PINS 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_PWM 10 | |||
#endif |
@@ -105,7 +105,7 @@ class usb_joystick_class | |||
if (!manual_mode) usb_joystick_send(); | |||
} | |||
inline void hat(int dir) { | |||
uint32_t val; | |||
uint32_t val = 0; | |||
if (dir < 0) val = 15; | |||
else if (dir < 23) val = 0; | |||
else if (dir < 68) val = 1; |