From 54b0a2bf765033f636d1d8440081f75126dfee81 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Fri, 1 Apr 2016 14:44:08 -0400 Subject: adding files is always smart --- keyboard/preonic/preonic.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 keyboard/preonic/preonic.c (limited to 'keyboard/preonic/preonic.c') diff --git a/keyboard/preonic/preonic.c b/keyboard/preonic/preonic.c new file mode 100644 index 000000000..a678f7b09 --- /dev/null +++ b/keyboard/preonic/preonic.c @@ -0,0 +1,36 @@ +#include "preonic.h" + +__attribute__ ((weak)) +void * matrix_init_user(void) { + +}; + +__attribute__ ((weak)) +void * matrix_scan_user(void) { + +}; + +void * matrix_init_kb(void) { + #ifdef BACKLIGHT_ENABLE + backlight_init_ports(); + #endif + + #ifdef RGBLIGHT_ENABLE + rgblight_init(); + #endif + + + // Turn status LED on + DDRE |= (1<<6); + PORTE |= (1<<6); + + if (matrix_init_user) { + (*matrix_init_user)(); + } +}; + +void * matrix_scan_kb(void) { + if (matrix_scan_user) { + (*matrix_scan_user)(); + } +}; -- cgit v1.2.3-24-g4f1b