diff options
| author | tmk <nobody@nowhere> | 2013-03-27 15:21:50 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-03-27 15:21:50 +0900 |
| commit | ac509aa079bb090017886b5d7e32240ef16a1196 (patch) | |
| tree | ad3719c0dd8cce043c235fd2d7e30c8bcd65f7af /common/command.c | |
| parent | f57a44261ebf42b3c1b8e336230a8b40c61a13de (diff) | |
| download | qmk_firmware-ac509aa079bb090017886b5d7e32240ef16a1196.tar.gz qmk_firmware-ac509aa079bb090017886b5d7e32240ef16a1196.zip | |
Add sleep LED test command
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index cb98e1d5f..b29333883 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -28,6 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 28 | #include "bootloader.h" | 28 | #include "bootloader.h" |
| 29 | #include "layer_switch.h" | 29 | #include "layer_switch.h" |
| 30 | #include "eeconfig.h" | 30 | #include "eeconfig.h" |
| 31 | #include "sleep_led.h" | ||
| 32 | #include "led.h" | ||
| 31 | #include "command.h" | 33 | #include "command.h" |
| 32 | 34 | ||
| 33 | #ifdef MOUSEKEY_ENABLE | 35 | #ifdef MOUSEKEY_ENABLE |
| @@ -152,6 +154,12 @@ static bool command_common(uint8_t code) | |||
| 152 | { | 154 | { |
| 153 | static host_driver_t *host_driver = 0; | 155 | static host_driver_t *host_driver = 0; |
| 154 | switch (code) { | 156 | switch (code) { |
| 157 | case KC_Z: | ||
| 158 | // test breathing sleep LED | ||
| 159 | print("Sleep LED test\n"); | ||
| 160 | sleep_led_toggle(); | ||
| 161 | led_set(host_keyboard_leds()); | ||
| 162 | break; | ||
| 155 | #ifdef BOOTMAGIC_ENABLE | 163 | #ifdef BOOTMAGIC_ENABLE |
| 156 | case KC_E: | 164 | case KC_E: |
| 157 | print("eeprom config\n"); | 165 | print("eeprom config\n"); |
