Kaleidoscope::setup: Use the HID facade

Instead of using `Keyboard.begin` directly, use
`kaleidoscope::hid::initializeKeyboard`. While there, also initialize
`ConsumerControl` and `SystemControl` the same way.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/278/head
Gergely Nagy 7 years ago
parent 2257402a43
commit a5eb6320c8

@ -10,7 +10,10 @@ Kaleidoscope_::Kaleidoscope_(void) {
void
Kaleidoscope_::setup(void) {
KeyboardHardware.setup();
Keyboard.begin();
kaleidoscope::hid::initializeKeyboard();
kaleidoscope::hid::initializeConsumerControl();
kaleidoscope::hid::initializeSystemControl();
// A workaround, so that the compiler does not optimize handleKeyswitchEvent out...
// This is a no-op, but tricks the compiler into not being too helpful

Loading…
Cancel
Save