diff options
| author | QMK Bot <hello@qmk.fm> | 2020-03-14 21:37:29 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2020-03-14 21:37:29 +0000 |
| commit | 60b020acabf5f78976203213bfd0097eed7656a4 (patch) | |
| tree | fb5a5a758f06ed81ee7251fc2beac94e7127632a /drivers | |
| parent | b5be96f8bb65d526a744795e8e3777d5ed47a034 (diff) | |
| download | qmk_firmware-60b020acabf5f78976203213bfd0097eed7656a4.tar.gz qmk_firmware-60b020acabf5f78976203213bfd0097eed7656a4.zip | |
format code according to conventions [skip ci]
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/oled/oled_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c index 690efa4a6..cb50c38c4 100644 --- a/drivers/oled/oled_driver.c +++ b/drivers/oled/oled_driver.c | |||
| @@ -108,7 +108,7 @@ bool oled_active = false; | |||
| 108 | bool oled_scrolling = false; | 108 | bool oled_scrolling = false; |
| 109 | uint8_t oled_rotation = 0; | 109 | uint8_t oled_rotation = 0; |
| 110 | uint8_t oled_rotation_width = 0; | 110 | uint8_t oled_rotation_width = 0; |
| 111 | uint8_t oled_scroll_speed = 0; // this holds the speed after being remapped to ssd1306 internal values | 111 | uint8_t oled_scroll_speed = 0; // this holds the speed after being remapped to ssd1306 internal values |
| 112 | uint8_t oled_scroll_start = 0; | 112 | uint8_t oled_scroll_start = 0; |
| 113 | uint8_t oled_scroll_end = 7; | 113 | uint8_t oled_scroll_end = 7; |
| 114 | #if OLED_TIMEOUT > 0 | 114 | #if OLED_TIMEOUT > 0 |
| @@ -523,7 +523,7 @@ bool oled_off(void) { | |||
| 523 | // height of the screen. For 128x32 screens, rows 4-7 are not used. | 523 | // height of the screen. For 128x32 screens, rows 4-7 are not used. |
| 524 | void oled_scroll_set_area(uint8_t start_line, uint8_t end_line) { | 524 | void oled_scroll_set_area(uint8_t start_line, uint8_t end_line) { |
| 525 | oled_scroll_start = start_line; | 525 | oled_scroll_start = start_line; |
| 526 | oled_scroll_end = end_line; | 526 | oled_scroll_end = end_line; |
| 527 | } | 527 | } |
| 528 | 528 | ||
| 529 | void oled_scroll_set_speed(uint8_t speed) { | 529 | void oled_scroll_set_speed(uint8_t speed) { |
| @@ -540,7 +540,7 @@ void oled_scroll_set_speed(uint8_t speed) { | |||
| 540 | // FrameRate256 speed = 3 | 540 | // FrameRate256 speed = 3 |
| 541 | // for ease of use these are remaped here to be in order | 541 | // for ease of use these are remaped here to be in order |
| 542 | static const uint8_t scroll_remap[8] = {7, 4, 5, 0, 6, 1, 2, 3}; | 542 | static const uint8_t scroll_remap[8] = {7, 4, 5, 0, 6, 1, 2, 3}; |
| 543 | oled_scroll_speed = scroll_remap[speed]; | 543 | oled_scroll_speed = scroll_remap[speed]; |
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | bool oled_scroll_right(void) { | 546 | bool oled_scroll_right(void) { |
