diff options
author | Jesse Vincent <jesse@keyboard.io> | 2020-01-08 21:57:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 21:57:30 -0800 |
commit | 0a60033bc705108855da87ca81417d1f1d780abe (patch) | |
tree | 66f3fa738ebefcf6bb282e7ffdda09a5b52d45ca | |
parent | 2f9d140ba94d6c5934ad17eed98654211706c7a7 (diff) | |
parent | 8f193dfdfff20c1a35d8cf3eb04e214b11f03485 (diff) | |
download | Model01-Firmware-0a60033bc705108855da87ca81417d1f1d780abe.tar.gz 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.ino | 9 |
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; |