use encoders for thk

This commit is contained in:
Jack Humbert 2018-10-26 20:21:20 -04:00
parent 44e7bdf52b
commit 3a64a9c55e
4 changed files with 14 additions and 53 deletions

View file

@ -161,7 +161,7 @@ extern uint32_t default_layer_state;
}
}
#define readPin(pin) (PIN_ADDRESS(pin, 0) & _BV(pin & 0xF))
#define readPin(pin) ((PIN_ADDRESS(pin, 0) & _BV(pin & 0xF)) != 0)
#elif defined(PROTOCOL_CHIBIOS)
#define pin_t ioline_t
#define setPinInput(pin) palSetLineMode(pin, PAL_MODE_INPUT)