diff options
author | Gergely Nagy <algernon@keyboard.io> | 2019-01-20 08:39:58 +0100 |
---|---|---|
committer | Gergely Nagy <algernon@keyboard.io> | 2019-01-20 08:39:58 +0100 |
commit | 0b00f27cbacb54ee4a333c480067427fe659dbc4 (patch) | |
tree | fece16263e3a5d554a905201feb2c0f372f7c8d6 | |
parent | 383c5ff1df2983c1e2e1027432b86d7504694c2d (diff) | |
download | Model01-Firmware-0b00f27cbacb54ee4a333c480067427fe659dbc4.tar.gz Model01-Firmware-0b00f27cbacb54ee4a333c480067427fe659dbc4.zip |
Stop using deprecated (and now removed) APIs
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
-rw-r--r-- | Model01-Firmware.ino | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 951e24c..58b3ebe 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -341,29 +341,29 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { // Keyboardio Model 01. -static kaleidoscope::LEDSolidColor solidRed(160, 0, 0); -static kaleidoscope::LEDSolidColor solidOrange(140, 70, 0); -static kaleidoscope::LEDSolidColor solidYellow(130, 100, 0); -static kaleidoscope::LEDSolidColor solidGreen(0, 160, 0); -static kaleidoscope::LEDSolidColor solidBlue(0, 70, 130); -static kaleidoscope::LEDSolidColor solidIndigo(0, 0, 170); -static kaleidoscope::LEDSolidColor solidViolet(130, 0, 120); +static kaleidoscope::plugin::LEDSolidColor solidRed(160, 0, 0); +static kaleidoscope::plugin::LEDSolidColor solidOrange(140, 70, 0); +static kaleidoscope::plugin::LEDSolidColor solidYellow(130, 100, 0); +static kaleidoscope::plugin::LEDSolidColor solidGreen(0, 160, 0); +static kaleidoscope::plugin::LEDSolidColor solidBlue(0, 70, 130); +static kaleidoscope::plugin::LEDSolidColor solidIndigo(0, 0, 170); +static kaleidoscope::plugin::LEDSolidColor solidViolet(130, 0, 120); /** toggleLedsOnSuspendResume toggles the LEDs off when the host goes to sleep, * and turns them back on when it wakes up. */ -void toggleLedsOnSuspendResume(kaleidoscope::HostPowerManagement::Event event) { +void toggleLedsOnSuspendResume(kaleidoscope::plugin::HostPowerManagement::Event event) { switch (event) { - case kaleidoscope::HostPowerManagement::Suspend: + case kaleidoscope::plugin::HostPowerManagement::Suspend: LEDControl.paused = true; LEDControl.set_all_leds_to({0, 0, 0}); LEDControl.syncLeds(); break; - case kaleidoscope::HostPowerManagement::Resume: + case kaleidoscope::plugin::HostPowerManagement::Resume: LEDControl.paused = false; LEDControl.refreshAll(); break; - case kaleidoscope::HostPowerManagement::Sleep: + case kaleidoscope::plugin::HostPowerManagement::Sleep: break; } } @@ -372,7 +372,7 @@ void toggleLedsOnSuspendResume(kaleidoscope::HostPowerManagement::Event event) { * resume, and sleep) to other functions that perform action based on these * events. */ -void hostPowerManagementEventHandler(kaleidoscope::HostPowerManagement::Event event) { +void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event) { toggleLedsOnSuspendResume(event); } |