I2C and SPI displays
Gal Zaidenstein edited this page Jan 29, 2020
·
2 revisions
MK32 supports the use of I2C and SPI displays using Neil Kobaln's u8g2 adaptation.
- in keyboard_config.h:
- Uncomment
#define OLED_ENABLE
. - Set your display's rotation
#define LANDSCAPE\DEG90\DEG180\DEG270
. - Set your
OLED_SDA_PIN
andOLED_SCL_PIN
. - If you are not using a 128x64 I2C display, in components/u8g2_OLED/oled_tasks.c in function
init oled
changeu8g2_Setup_ssd1306_i2c_128x64_noname_f
to the function that fits you your display.
You might need to modify the display functions themselves to fit your resolution so please refer to the u8g2 reference manual.
- Uncomment
**Will be updated soon for easier implementation, for now can you check out Neil Kolban's SPI example (linked in his repository) to adapt.