aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split/split_util.c
diff options
context:
space:
mode:
authorGravatar ishtob <ishtob@gmail.com>2017-03-22 15:04:11 -0400
committerGravatar GitHub <noreply@github.com>2017-03-22 15:04:11 -0400
commit65317a3a020c0b0261849fb4c40d3aae175ac337 (patch)
tree9066b264cec4c11286b46fe1bc837b09c5f1c30d /keyboards/lets_split/split_util.c
parent423c68c210d73f6bb05c3e9f4a994833b12a524e (diff)
downloadqmk_firmware-65317a3a020c0b0261849fb4c40d3aae175ac337.tar.gz
Added OLED SSD1306 support to I2C
Diffstat (limited to 'keyboards/lets_split/split_util.c')
-rw-r--r--keyboards/lets_split/split_util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/lets_split/split_util.c b/keyboards/lets_split/split_util.c
index 226dc1881..b87bae38b 100644
--- a/keyboards/lets_split/split_util.c
+++ b/keyboards/lets_split/split_util.c
@@ -21,8 +21,8 @@ static void setup_handedness(void) {
#ifdef EE_HANDS
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
#else
- // I2C_MASTER_RIGHT is deprecated use MASTER_RIGHT instead since this works for both serial and i2c
- #if defined(I2C_MASTER_RIGHT) || defined(MASTER_RIGHT)
+ // I2c_MASTER_RIGHT ish deprecate use MASTER_RIGHT instead since this works for both serial and i2c:
+ #if defined (I2C_MASTER_RIGHT) || defined (MASTER_RIGHT)
isLeftHand = !has_usb();
#else
isLeftHand = has_usb();
@@ -33,6 +33,9 @@ static void setup_handedness(void) {
static void keyboard_master_setup(void) {
#ifdef USE_I2C
i2c_master_init();
+#ifdef SSD1306OLED
+ matrix_master_OLED_init ();
+#endif
#else
serial_master_init();
#endif