void matrix_init_user(void) { #ifdef AUDIO_ENABLE startup_user(); #endif #ifdef RGBLIGHT_ENABLE RGB_current_mode = rgblight_config.mode; #endif //SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h #ifdef SSD1306OLED iota_gfx_init(!has_usb()); // turns on the display #endif }
void matrix_init_user(void) { #ifdef AUDIO_ENABLE startup_user(); #endif #ifdef RGBLIGHT_ENABLE RGB_current_mode = rgblight_config.mode; #endif //SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h #ifdef SSD1306OLED TWI_Init(TWI_BIT_PRESCALE_1, TWI_BITLENGTH_FROM_FREQ(1, 800000)); iota_gfx_init(!has_usb()); // turns on the display #endif }
void matrix_init_user(void) { #ifdef USE_I2C i2c_master_init(); #ifdef SSD1306OLED // calls code for the SSD1306 OLED _delay_ms(400); TWI_Init(TWI_BIT_PRESCALE_1, TWI_BITLENGTH_FROM_FREQ(1, 800000)); iota_gfx_init(); // turns on the display #endif #endif #ifdef AUDIO_ENABLE startup_user(); #endif }
// No global matrix scan code, so just run keymap's matrix // scan function void matrix_scan_user(void) { static bool has_ran_yet; if (!has_ran_yet) { has_ran_yet = true; startup_user(); } LEADER_DICTIONARY() { leading = false; leader_end(); // Mac Save (Leader -> s) SEQ_ONE_KEY(KC_S) { SEND_STRING(SS_LGUI("s")); } // Mac copy line down (Leader -> d, d) SEQ_TWO_KEYS(KC_D, KC_D) { register_code(KC_LSHIFT); register_code(KC_HOME); unregister_code(KC_HOME); unregister_code(KC_LSHIFT); SEND_STRING(SS_LGUI("c")); tap(KC_END); tap(KC_ENTER); SEND_STRING(SS_LGUI("v")); } // Mac copy line up (Leader -> u, u) SEQ_TWO_KEYS(KC_U, KC_U) { register_code(KC_LSHIFT); register_code(KC_HOME); unregister_code(KC_HOME); unregister_code(KC_LSHIFT); SEND_STRING(SS_LGUI("c")); tap(KC_UP); tap(KC_END); tap(KC_ENTER); SEND_STRING(SS_LGUI("v")); }
void matrix_init_user(void) { #ifdef AUDIO_ENABLE startup_user(); #endif }
void matrix_init_user(void) { startup_user(); }
void matrix_init_user(void) { set_voice(default_voice); startup_user(); println("Matrix Init"); }
void matrix_init_user(void) { #ifdef AUDIO_ENABLE startup_user(); #endif RGB_current_mode = rgblight_config.mode; }