예제 #1
0
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
}
예제 #2
0
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
}
예제 #3
0
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
}
예제 #4
0
파일: bocaj.c 프로젝트: 0xdec/qmk_firmware
// 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"));
    }
예제 #5
0
파일: keymap.c 프로젝트: 2k0ri/qmk_firmware
void matrix_init_user(void) {
  #ifdef AUDIO_ENABLE
        startup_user();
  #endif
}
예제 #6
0
void matrix_init_user(void) {
  startup_user();
}
예제 #7
0
void matrix_init_user(void)
{
  set_voice(default_voice);
  startup_user();
  println("Matrix Init");
}
예제 #8
0
void matrix_init_user(void) {
    #ifdef AUDIO_ENABLE
        startup_user();
    #endif
    RGB_current_mode = rgblight_config.mode;
}