Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sleep_led.c 298B

12345678910111213141516171819
  1. #include "ch.h"
  2. #include "led.h"
  3. #include "sleep_led.h"
  4. void sleep_led_init(void) {
  5. }
  6. void sleep_led_enable(void) {
  7. led_set(1<<USB_LED_CAPS_LOCK);
  8. }
  9. void sleep_led_disable(void) {
  10. led_set(0);
  11. }
  12. void sleep_led_toggle(void) {
  13. // not working yet, state not saved anywhere currently
  14. }