2
0

rev6.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  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 "rev6.h"
  17. #include "rgblight.h"
  18. uint8_t *o_fb;
  19. void matrix_init_kb(void) {
  20. // rgblight_enable();
  21. // rgblight_mode(1);
  22. // rgblight_setrgb(0xFF, 0xFF, 0xFF);
  23. ledDriverInit(2, GPIOA, 0b00000010, &o_fb);
  24. testPatternFB(o_fb);
  25. matrix_init_user();
  26. }
  27. void matrix_scan_kb(void) {
  28. matrix_scan_user();
  29. testPatternFB(o_fb);
  30. }