Skip to content

Commit

Permalink
Set default OLED Update Interval for Split Keyboards (qmk#12107)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drashna authored and hsgw committed Apr 29, 2021
1 parent 8c230b0 commit 784d519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/oled/oled_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# define OLED_I2C_TIMEOUT 100
#endif

#if !defined(OLED_UPDATE_INTERVAL) && defined(SPLIT_KEYBOARD)
# define OLED_UPDATE_INTERVAL 50
#endif

typedef struct __attribute__((__packed__)) {
uint8_t *current_element;
uint16_t remaining_element_count;
Expand Down

0 comments on commit 784d519

Please sign in to comment.