z150_blackheart.c 656 B

1234567891011121314151617181920212223242526272829303132
  1. #include "z150_blackheart.h"
  2. void matrix_init_kb(void) {
  3. setPinOutput(B0);
  4. setPinOutput(E6);
  5. setPinOutput(E7);
  6. matrix_init_user();
  7. };
  8. void led_set_kb(uint8_t usb_led) {
  9. // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
  10. if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
  11. writePinHigh(E7);
  12. } else {
  13. writePinLow(E7);
  14. }
  15. if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
  16. writePinHigh(B0);
  17. } else {
  18. writePinLow(B0);
  19. }
  20. if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
  21. writePinHigh(E6);
  22. } else {
  23. writePinLow(E6);
  24. }
  25. led_set_user(usb_led);
  26. }