diff options
Diffstat (limited to 'keyboards/kbdfans/kbd67')
| -rw-r--r-- | keyboards/kbdfans/kbd67/rev1/config.h | 2 | ||||
| -rw-r--r-- | keyboards/kbdfans/kbd67/rev1/rev1.c | 35 |
2 files changed, 2 insertions, 35 deletions
diff --git a/keyboards/kbdfans/kbd67/rev1/config.h b/keyboards/kbdfans/kbd67/rev1/config.h index 86ef3b813..a713143a4 100644 --- a/keyboards/kbdfans/kbd67/rev1/config.h +++ b/keyboards/kbdfans/kbd67/rev1/config.h | |||
| @@ -48,6 +48,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 48 | /* COL2ROW, ROW2COL*/ | 48 | /* COL2ROW, ROW2COL*/ |
| 49 | #define DIODE_DIRECTION COL2ROW | 49 | #define DIODE_DIRECTION COL2ROW |
| 50 | 50 | ||
| 51 | #define LED_CAPS_LOCK_PIN B2 | ||
| 52 | |||
| 51 | #define BACKLIGHT_PIN B6 | 53 | #define BACKLIGHT_PIN B6 |
| 52 | #ifdef BACKLIGHT_PIN | 54 | #ifdef BACKLIGHT_PIN |
| 53 | #define BACKLIGHT_BREATHING | 55 | #define BACKLIGHT_BREATHING |
diff --git a/keyboards/kbdfans/kbd67/rev1/rev1.c b/keyboards/kbdfans/kbd67/rev1/rev1.c index 94cb9e553..489e85683 100644 --- a/keyboards/kbdfans/kbd67/rev1/rev1.c +++ b/keyboards/kbdfans/kbd67/rev1/rev1.c | |||
| @@ -14,38 +14,3 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "rev1.h" | 16 | #include "rev1.h" |
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // put your keyboard start-up code here | ||
| 20 | // runs once when the firmware starts up | ||
| 21 | |||
| 22 | matrix_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void matrix_scan_kb(void) { | ||
| 26 | // put your looping keyboard code here | ||
| 27 | // runs every cycle (a lot) | ||
| 28 | |||
| 29 | matrix_scan_user(); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 33 | // put your per-action keyboard code here | ||
| 34 | // runs for every action, just before processing by the firmware | ||
| 35 | |||
| 36 | return process_record_user(keycode, record); | ||
| 37 | } | ||
| 38 | |||
| 39 | void led_set_kb(uint8_t usb_led) { | ||
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 41 | |||
| 42 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 43 | DDRB |= (1 << 2); | ||
| 44 | PORTB &= ~(1 << 2); | ||
| 45 | } else { | ||
| 46 | DDRB &= ~(1 << 2); | ||
| 47 | PORTB &= ~(1 << 2); | ||
| 48 | } | ||
| 49 | |||
| 50 | led_set_user(usb_led); | ||
| 51 | } | ||
