1
0
Fork 0

OLED driver tweaks (#13215)

This commit is contained in:
Ryan 2021-06-17 17:14:23 +10:00 committed by GitHub
parent a9c6adb083
commit 2f08a34394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 24 deletions

View file

@ -115,7 +115,7 @@ bool oled_initialized = false;
bool oled_active = false;
bool oled_scrolling = false;
uint8_t oled_brightness = OLED_BRIGHTNESS;
uint8_t oled_rotation = 0;
oled_rotation_t oled_rotation = 0;
uint8_t oled_rotation_width = 0;
uint8_t oled_scroll_speed = 0; // this holds the speed after being remapped to ssd1306 internal values
uint8_t oled_scroll_start = 0;
@ -158,7 +158,7 @@ static void InvertCharacter(uint8_t *cursor) {
}
}
bool oled_init(uint8_t rotation) {
bool oled_init(oled_rotation_t rotation) {
#if defined(USE_I2C) && defined(SPLIT_KEYBOARD)
if (!is_keyboard_master()) {
return true;