I've just added a basic OLED Library for the 0.96" I2C OLED Displays that come with the Address 0x3C (hardcoded!)
Its build with modified code from the adafruit arduino library and this i2c_oled library
/* Usage Notes
Works only with i2c 0.96" OLED Displays with Device Address 0x3C - Hardcoded Device ID
Does Default Setup Automatically
oled.setup(sda,scl) => Sets up the Screen uses default 0x3C i2c device address for 0.96" Cheap OLED Modules
oled.clear() => To Clear Screen
oled.line(line number, font size, "text to be printed" ) // Font Size can be 1 or 2
oled.print(x,y, font size, "text to be printed" ) // Font Size can be 1 or 2
oled.invert(val) // val can be 1 or 0
*/
Let me know how it goes
Cheers,
Pracas
Attachments
(285.51 KiB) Downloaded 450 times
(285.4 KiB) Downloaded 434 times