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.

57 lines
1.3 KiB

  1. /*
  2. QMK Firmware for dekuNukem/duckyPad
  3. Copyright (C) 2020 Anthony Som
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #include "duckypad.h"
  16. #ifdef RGB_MATRIX_ENABLE
  17. led_config_t g_led_config = { {
  18. { 2, 1, 0, 3, 4, 5, 8, 7, 6, 9, 10, 11, 14, 13, 12, NO_LED, NO_LED }
  19. }, {
  20. {224, 0},
  21. {112, 0},
  22. {0, 0},
  23. {0, 16},
  24. {112, 16},
  25. {224, 16},
  26. {224, 32},
  27. {112, 32},
  28. {0, 32},
  29. {0, 48},
  30. {112, 48},
  31. {224, 48},
  32. {224, 64},
  33. {112, 64},
  34. {0, 64},
  35. }, {
  36. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  37. } };
  38. #endif
  39. void keyboard_pre_init_kb(void) {
  40. setPinOutput(A0);
  41. writePinHigh(A0);
  42. writePinLow(A0);
  43. wait_ms(10);
  44. writePinHigh(A0);
  45. keyboard_pre_init_user();
  46. }