mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-03-13 06:54:08 +00:00
Fixed OLED rotation
This commit is contained in:
parent
dcbfbed919
commit
755f20e270
@ -192,16 +192,7 @@ static void render_status(void) {
|
|||||||
|
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
startup_timer = timer_read();
|
startup_timer = timer_read();
|
||||||
|
return OLED_ROTATION_90;
|
||||||
if (is_keyboard_master()) {
|
|
||||||
if (is_keyboard_left()) {
|
|
||||||
return OLED_ROTATION_90;
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_270;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_270;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void render_qmk_logo(void) {
|
static void render_qmk_logo(void) {
|
||||||
|
@ -208,17 +208,9 @@ uint16_t startup_timer;
|
|||||||
|
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
startup_timer = timer_read();
|
startup_timer = timer_read();
|
||||||
|
return OLED_ROTATION_90;
|
||||||
if (is_keyboard_master()) {
|
|
||||||
if (is_keyboard_left()) {
|
|
||||||
return OLED_ROTATION_90;
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_270;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_90;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void render_qmk_logo(void) {
|
static void render_qmk_logo(void) {
|
||||||
static const char PROGMEM qmk_logo[] = {// 'qmk_via_OLED_128x64', 64x128px
|
static const char PROGMEM qmk_logo[] = {// 'qmk_via_OLED_128x64', 64x128px
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0xc7, 0xc7, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0xc7, 0xc7, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
@ -192,16 +192,7 @@ static void render_status(void) {
|
|||||||
|
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
startup_timer = timer_read();
|
startup_timer = timer_read();
|
||||||
|
return OLED_ROTATION_90;
|
||||||
if (is_keyboard_master()) {
|
|
||||||
if (is_keyboard_left()) {
|
|
||||||
return OLED_ROTATION_90;
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_270;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return OLED_ROTATION_90;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void render_qmk_logo(void) {
|
static void render_qmk_logo(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user