X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboards%2Fhelix%2Fssd1306.c;h=b3e55a67c201f45385da4142a1755941fbea36fc;hb=0533ea4a2042365e1970345243f2fc0333fb082c;hp=80efc3d16683e49639b9a0bbdbdf55f265ae1547;hpb=bceffdefcac30dd8b08ec3b803af372cbf254a7b;p=qmk_firmware.git diff --git a/keyboards/helix/ssd1306.c b/keyboards/helix/ssd1306.c index 80efc3d16..b3e55a67c 100644 --- a/keyboards/helix/ssd1306.c +++ b/keyboards/helix/ssd1306.c @@ -4,7 +4,11 @@ #include "i2c.h" #include #include "print.h" +#ifndef LOCAL_GLCDFONT #include "common/glcdfont.c" +#else +#include +#endif #ifdef ADAFRUIT_BLE_ENABLE #include "adafruit_ble.h" #endif @@ -123,6 +127,7 @@ static int8_t capture_sendchar(uint8_t c) { bool iota_gfx_init(bool rotate) { bool success = false; + i2c_master_init(); send_cmd1(DisplayOff); send_cmd2(SetDisplayClockDiv, 0x80); send_cmd2(SetMultiPlex, DisplayHeight - 1);