]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/mitosis/mitosis.c
[Keymap] Jarred's Plaid keymap (#6049)
[qmk_firmware.git] / keyboards / mitosis / mitosis.c
index 61a26c662ae0e15b6f1383f86d80141e7bfe6b77..1ca7276e410237b83af0ac5d08218a82591a0998 100644 (file)
@@ -5,13 +5,12 @@ void uart_init(void) {
 }
 
 void led_init(void) {
-       DDRD  |= (1<<1);
-       PORTD |= (1<<1);
-       DDRF  |= (1<<4) | (1<<5);
-       PORTF |= (1<<4) | (1<<5);
+       DDRD  |= (1<<1); // Pin to green, set as output
+       PORTD |= (1<<1); // Turn it off
+       DDRF  |= (1<<4) | (1<<5); // Pins to red and blue, set as output
+       PORTF |= (1<<4) | (1<<5); // Turn them off
 }
 
-
 void matrix_init_kb(void) {
        // put your keyboard start-up code here
        // runs once when the firmware starts up
@@ -20,17 +19,7 @@ void matrix_init_kb(void) {
        led_init();
 }
 
-void matrix_scan_kb(void) {
-       // put your looping keyboard code here
-       // runs every cycle (a lot)
-       matrix_scan_user();
-}
-
-void led_set_kb(uint8_t usb_led) {
-
-}
-
-#ifdef ONEHAND_ENABLE
+#ifdef SWAP_HANDS_ENABLE
 __attribute__ ((weak))
 const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
 {{9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},