pico.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "helix.h"
  2. // Each keymap.c should use is_keyboard_master() instead of 'is_master'.
  3. // But keep 'is_master' for a while for backwards compatibility
  4. // for the old keymap.c.
  5. uint8_t is_master = false;
  6. #ifdef SSD1306OLED
  7. #include "ssd1306.h"
  8. bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
  9. return process_record_gfx(keycode,record) && process_record_user(keycode, record);
  10. }
  11. void led_set_kb(uint8_t usb_led) {
  12. // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
  13. //led_set_user(usb_led);
  14. }
  15. #endif
  16. void matrix_init_kb(void) {
  17. // Each keymap.c should use is_keyboard_master() instead of is_master.
  18. // But keep is_master for a while for backwards compatibility
  19. // for the old keymap.c.
  20. is_master = is_keyboard_master();
  21. matrix_init_user();
  22. };
  23. void keyboard_post_init_kb(void) {
  24. #if defined(DEBUG_MATRIX_SCAN_RATE)
  25. debug_enable = true;
  26. #endif
  27. keyboard_post_init_user();
  28. }
  29. #if defined(SPLIT_KEYBOARD) && defined(SSD1306OLED)
  30. void matrix_slave_scan_user(void) {
  31. matrix_scan_user();
  32. }
  33. #endif