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.

43 lines
893 B

  1. #include "ixora.h"
  2. void matrix_init_kb(void) {
  3. // put your keyboard start-up code here
  4. // runs once when the firmware starts up
  5. setPinOutput(A8);
  6. setPinOutput(A9);
  7. setPinOutput(A10);
  8. writePinLow(A8);
  9. writePinLow(A9);
  10. writePinLow(A10);
  11. matrix_init_user();
  12. }
  13. void matrix_scan_kb(void) {
  14. matrix_scan_user();
  15. }
  16. bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
  17. return process_record_user(keycode, record);
  18. }
  19. void led_set_kb(uint8_t usb_led) {
  20. if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
  21. writePinHigh(A10);
  22. } else {
  23. writePinLow(A10);
  24. }
  25. if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
  26. writePinHigh(A9);
  27. } else {
  28. writePinLow(A9);
  29. }
  30. if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
  31. writePinHigh(A8);
  32. } else {
  33. writePinLow(A8);
  34. }
  35. led_set_user(usb_led);
  36. }