diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-03-05 16:26:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-05 16:26:57 -0800 |
| commit | b7f2f40ae5bf9ad148e2de58757a14813f37a779 (patch) | |
| tree | 9d10b6a109d005ce4a72e216ac87ad6284f0a43f | |
| parent | 6e938f1f24e0cfc5e1440acb71cbac5088840332 (diff) | |
| download | qmk_firmware-b7f2f40ae5bf9ad148e2de58757a14813f37a779.tar.gz qmk_firmware-b7f2f40ae5bf9ad148e2de58757a14813f37a779.zip | |
Set default OLED Update Interval for Split Keyboards (#12107)
Because the matrix scanning is slower for splits, in general,
the frequent updating of the OLEDs can slow down the matrix scanning.
To help prevent that, set the update interval for the OLEDs to not
update as frequently.
| -rw-r--r-- | drivers/oled/oled_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index 72ab21247..00896f01c 100644 --- a/drivers/oled/oled_driver.h +++ b/drivers/oled/oled_driver.h | |||
| @@ -158,6 +158,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 158 | # define OLED_I2C_TIMEOUT 100 | 158 | # define OLED_I2C_TIMEOUT 100 |
| 159 | #endif | 159 | #endif |
| 160 | 160 | ||
| 161 | #if !defined(OLED_UPDATE_INTERVAL) && defined(SPLIT_KEYBOARD) | ||
| 162 | # define OLED_UPDATE_INTERVAL 50 | ||
| 163 | #endif | ||
| 164 | |||
| 161 | typedef struct __attribute__((__packed__)) { | 165 | typedef struct __attribute__((__packed__)) { |
| 162 | uint8_t *current_element; | 166 | uint8_t *current_element; |
| 163 | uint16_t remaining_element_count; | 167 | uint16_t remaining_element_count; |
