summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@keyboard.io>2020-01-08 21:57:30 -0800
committerGitHub <noreply@github.com>2020-01-08 21:57:30 -0800
commit0a60033bc705108855da87ca81417d1f1d780abe (patch)
tree66f3fa738ebefcf6bb282e7ffdda09a5b52d45ca
parent2f9d140ba94d6c5934ad17eed98654211706c7a7 (diff)
parent8f193dfdfff20c1a35d8cf3eb04e214b11f03485 (diff)
downloadmodel01-firmware-0a60033bc705108855da87ca81417d1f1d780abe.tar.gz
model01-firmware-0a60033bc705108855da87ca81417d1f1d780abe.tar.bz2
model01-firmware-0a60033bc705108855da87ca81417d1f1d780abe.zip
Merge pull request #95 from keyboardio/update-to-use-new-apis
Update to use new apis
-rw-r--r--Model01-Firmware.ino9
1 files changed, 3 insertions, 6 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 32623c3..01fe286 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -310,7 +310,7 @@ static void anyKeyMacro(uint8_t keyState) {
}
if (keyIsPressed(keyState))
- kaleidoscope::hid::pressKey(lastKey, toggledOn);
+ Kaleidoscope.hid().keyboard().pressKey(lastKey, toggledOn);
}
@@ -361,13 +361,10 @@ static kaleidoscope::plugin::LEDSolidColor solidViolet(130, 0, 120);
void toggleLedsOnSuspendResume(kaleidoscope::plugin::HostPowerManagement::Event event) {
switch (event) {
case kaleidoscope::plugin::HostPowerManagement::Suspend:
- LEDControl.set_all_leds_to({0, 0, 0});
- LEDControl.syncLeds();
- LEDControl.paused = true;
+ LEDControl.disable();
break;
case kaleidoscope::plugin::HostPowerManagement::Resume:
- LEDControl.paused = false;
- LEDControl.refreshAll();
+ LEDControl.enable();
break;
case kaleidoscope::plugin::HostPowerManagement::Sleep:
break;