diff options
author | Jesse Vincent <jesse@fsck.com> | 2019-01-19 23:41:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-19 23:41:38 -0800 |
commit | cf6234b77e96d02fb97d4d32f4edea94bdc46e09 (patch) | |
tree | fece16263e3a5d554a905201feb2c0f372f7c8d6 | |
parent | 383c5ff1df2983c1e2e1027432b86d7504694c2d (diff) | |
parent | 0b00f27cbacb54ee4a333c480067427fe659dbc4 (diff) | |
download | Model01-Firmware-cf6234b77e96d02fb97d4d32f4edea94bdc46e09.tar.gz Model01-Firmware-cf6234b77e96d02fb97d4d32f4edea94bdc46e09.zip |
Merge pull request #75 from keyboardio/no-deprecated-apis
Stop using deprecated (and now removed) APIs
-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); } |