Browse Source

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.
Drashna Jaelre 4 years ago
parent
commit
b7f2f40ae5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/oled/oled_driver.h

+ 4 - 0
drivers/oled/oled_driver.h

@@ -158,6 +158,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #    define OLED_I2C_TIMEOUT 100
 #    define OLED_I2C_TIMEOUT 100
 #endif
 #endif
 
 
+#if !defined(OLED_UPDATE_INTERVAL) && defined(SPLIT_KEYBOARD)
+#    define OLED_UPDATE_INTERVAL 50
+#endif
+
 typedef struct __attribute__((__packed__)) {
 typedef struct __attribute__((__packed__)) {
     uint8_t *current_element;
     uint8_t *current_element;
     uint16_t remaining_element_count;
     uint16_t remaining_element_count;