mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 01:47:10 +06:00
2b7decbaeb
* Fix up screen off timer of helix * Fix Up ScreenOffInterval exceeded uint16_t * Fix Up never waking up once screen off if in case of matrix are not dirty * Changing referenIng incorrect constant name * OLED_ENABLED => SSD1306OLED * Improve internal processing of process_record_kb() * Use the return value of process_record_gfx() * Move a include statement into #ifdef block Move #include "ssd1306.h` statement into #ifdef block * Move process_record_kbI() Move process_record_kb() from helix.c to rev1.c/rev2.c/pico.c * Move process_record_kb()
29 lines
561 B
C
29 lines
561 B
C
#include "helix.h"
|
|
|
|
|
|
#ifdef SSD1306OLED
|
|
#include "ssd1306.h"
|
|
|
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|
return process_record_gfx(keycode,record) && process_record_user(keycode, record);
|
|
}
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
led_set_user(usb_led);
|
|
}
|
|
#endif
|
|
|
|
void matrix_init_kb(void) {
|
|
|
|
// // green led on
|
|
// DDRD |= (1<<5);
|
|
// PORTD &= ~(1<<5);
|
|
|
|
// // orange led on
|
|
// DDRB |= (1<<0);
|
|
// PORTB &= ~(1<<0);
|
|
|
|
matrix_init_user();
|
|
};
|