comet46.c 505 B

123456789101112131415161718192021222324252627282930
  1. #include "comet46.h"
  2. void uart_init(void) {
  3. SERIAL_UART_INIT();
  4. }
  5. void led_init(void) {
  6. DDRD |= (1<<1);
  7. PORTD |= (1<<1);
  8. DDRF |= (1<<4) | (1<<5);
  9. PORTF |= (1<<4) | (1<<5);
  10. }
  11. void matrix_init_kb(void) {
  12. // put your keyboard start-up code here
  13. // runs once when the firmware starts up
  14. matrix_init_user();
  15. uart_init();
  16. led_init();
  17. }
  18. void matrix_scan_kb(void) {
  19. // put your looping keyboard code here
  20. // runs every cycle (a lot)
  21. matrix_scan_user();
  22. }
  23. void led_set_kb(uint8_t usb_led) {
  24. }