1
0
Fork 0

Added OLED SSD1306 support to I2C

This commit is contained in:
ishtob 2017-03-22 15:04:11 -04:00 committed by GitHub
parent 423c68c210
commit 65317a3a02
8 changed files with 908 additions and 21 deletions

View file

@ -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