logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

pico.c (1295B)


  1. /* Copyright 2018 MakotoKurauchi
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include "pico.h"
  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. uint8_t is_master = false;
  21. void matrix_init_kb(void) {
  22. // Each keymap.c should use is_keyboard_master() instead of is_master.
  23. // But keep is_master for a while for backwards compatibility
  24. // for the old keymap.c.
  25. is_master = is_keyboard_master();
  26. matrix_init_user();
  27. };
  28. void keyboard_post_init_kb(void) {
  29. #if defined(DEBUG_MATRIX_SCAN_RATE)
  30. debug_enable = true;
  31. #endif
  32. keyboard_post_init_user();
  33. }