1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboard/preonic/preonic.c

41 lines
581 B
C
Raw Normal View History

2016-04-01 20:44:08 +02:00
#include "preonic.h"
__attribute__ ((weak))
2016-04-03 22:00:10 +02:00
void matrix_init_user(void) {
2016-04-01 20:44:08 +02:00
};
__attribute__ ((weak))
2016-04-03 22:00:10 +02:00
void matrix_scan_user(void) {
2016-04-01 20:44:08 +02:00
};
2016-04-05 15:44:01 +02:00
__attribute__ ((weak))
void process_action_user(keyrecord_t *record) {
};
2016-04-03 22:00:10 +02:00
void matrix_init_kb(void) {
2016-04-01 20:44:08 +02:00
#ifdef BACKLIGHT_ENABLE
backlight_init_ports();
#endif
#ifdef RGBLIGHT_ENABLE
rgblight_init();
#endif
// Turn status LED on
DDRE |= (1<<6);
PORTE |= (1<<6);
2016-04-03 22:00:10 +02:00
matrix_init_user();
2016-04-01 20:44:08 +02:00
};
2016-04-03 22:00:10 +02:00
void matrix_scan_kb(void) {
matrix_scan_user();
2016-04-01 20:44:08 +02:00
};
2016-04-05 15:44:01 +02:00
void process_action_kb(keyrecord_t *record) {
process_action_user(record);
}