From: tmk Date: Wed, 27 Mar 2013 06:21:50 +0000 (+0900) Subject: Add sleep LED test command X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=ac509aa079bb090017886b5d7e32240ef16a1196;p=max%2Ftmk_keyboard.git Add sleep LED test command --- diff --git a/common/command.c b/common/command.c index cb98e1d5..b2933388 100644 --- a/common/command.c +++ b/common/command.c @@ -28,6 +28,8 @@ along with this program. If not, see . #include "bootloader.h" #include "layer_switch.h" #include "eeconfig.h" +#include "sleep_led.h" +#include "led.h" #include "command.h" #ifdef MOUSEKEY_ENABLE @@ -152,6 +154,12 @@ static bool command_common(uint8_t code) { static host_driver_t *host_driver = 0; switch (code) { + case KC_Z: + // test breathing sleep LED + print("Sleep LED test\n"); + sleep_led_toggle(); + led_set(host_keyboard_leds()); + break; #ifdef BOOTMAGIC_ENABLE case KC_E: print("eeprom config\n");