Make the ErgoDox symbol available

The global `ErgoDox` symbol should be a shortcut, an alias, to KeyboardHardware.
When using ErgoDox-specific functionality, `ErgoDox.someMethod()` is much
clearer about that than `KeyboardHardware.someMethod()` would be.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/427/head^2
Gergely Nagy 7 years ago
parent 499d4e8b37
commit afa32312e0

@ -108,3 +108,4 @@ bool ErgoDox::isKeyMasked(byte row, byte col) {
}
HARDWARE_IMPLEMENTATION KeyboardHardware;
kaleidoscope::hardware::ErgoDox &ErgoDox = KeyboardHardware;

@ -118,3 +118,5 @@ class ErgoDox {
}
}
extern kaleidoscope::hardware::ErgoDox &ErgoDox;

Loading…
Cancel
Save