sixkeyboard.c 472 B

123456789101112131415161718192021222324252627282930
  1. #include "sixkeyboard.h"
  2. void matrix_init_kb(void) {
  3. // put your keyboard start-up code here
  4. // runs once when the firmware starts up
  5. DDRC |= (1<<4);
  6. PORTC &= ~(1<<4);
  7. DDRC |= (1<<6);
  8. PORTC &= ~(1<<6);
  9. DDRB |= (1<<6);
  10. PORTB &= ~(1<<6);
  11. DDRB |= (1<<4);
  12. PORTB &= ~(1<<4);
  13. DDRD |= (1<<5);
  14. PORTD &= ~(1<<5);
  15. DDRD |= (1<<2);
  16. PORTD &= ~(1<<2);
  17. DDRD |= (1<<3);
  18. PORTD &= ~(1<<3);
  19. matrix_init_user();
  20. };