You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More compact and easy to us than anything you can do with Adafruit GFX
TerOled, a Serial Terminal for OledSSD1306
The new xxOled.h family of files follows the logic of the construction of your application. The SSD1306 must be connected on 2 pins. If you use the I2C pins on AVR328, load TwiOled.h. If other pins adapt the BitBang file Bb7654Oled.h - 10 lines to understand and change. Next you need the Oled setup, a charater generator and the primitives to write numbers and texts: load the PixOled.h; it also set dots for simple graphics.
Add the TerOled.h compatible with the SerOled that replace the Arduino Serial.print terminal. This will cost you only 2 kbytes of memory and 80 bytes of variable.
How to handle SSD 1306 with 128x32 format?
Add two lines at the end of setup SetupOledMap() or SetupOledPix() in order to be compatible with 32 lines.
Cmd (0xDA);
Cmd (0x02);
Now the text lines are numbered 4,5,6,7. No guarantie is given for what happen on lines 0,1,2,3 and for dots with y>32.
Functions are DoubleH(); - for 128x32, SingleH(); back to 128x64. If you have access to SSD1306 low level doc, play with Cmd() to scroll and do other tricks.