samedi 28 avril 2018

C2000 OLED SSD1306

A Texas Instruments C2000 (F28027F, F28069M, Launchpad...) code that displays variables and text, on a small 0.98" OLED SSD1306 
Simply connect the I2C bus SDA/SCL and 3.3V / GND pins 
I used GPIO 32 for SDA and GPIO33 for SCL
BP pin
Signal Desired
Connect
Cut
J2.6
GPIO - SDI
JP4
JP5
J2.7
GPIO  - SDO
JP6
JP7
J6.7
GPIO32 - SDA
JP9
JP8
J6.8
GPIO33 - SCL
JP11
JP10

Reduced and functional code available on :
Same code will works for F28069M
Just take standard example (struct approach) and copy oled.c/.h and modify main routines by my main.c
Have fun
If someone wants to adapt it to U8G2, it would be great.