1 #include QMK_KEYBOARD_H
2 #include "split_util.h"
3 #include "keymap_xrows.h"
8 // keymaps definitions are moved to keymap_Xrows.c.
11 void matrix_init_keymap(void) {
12 //SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
13 iota_gfx_init(!has_usb()); // turns on the display
16 void matrix_scan_user(void) {
17 iota_gfx_task(); // this is what updates the display continuously
21 #ifdef RGBLIGHT_ENABLE
22 uint32_t layer_state_set_keymap(uint32_t state) {
23 rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
24 switch (biton32(state)) {
26 rgblight_sethsv_noeeprom_red();
29 rgblight_sethsv_noeeprom_blue();
31 default: // for any other layers, or the default layer
32 rgblight_mode(RGBLIGHT_MODE_STATIC_GRADIENT + 3);
33 rgblight_sethsv_red();