Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gerardwr
#39726 Hi,

I have been playing with a Wemos D1 board and a I2C SSD1306 Oled display.

I found 2 simple libraries that 'just work":
- Example by Dan Bicks : http://www.esp8266.com/viewtopic.php?f=29&t=3256&p=39721#p39721
- Library from Bill Greiman :https://github.com/greiman/SSD1306Ascii

The 1st example is a sketch with Oled code integrated in a Wifi scanner, excellent for learning Oled commands.

The 2nd example is a text-only library, that can easily be added to your own code. It supports the use of print and println, so the learning curve is flat. The provided example HellWorldWire runs without any changes on my Wemos D1.
User avatar
By gerardwr
#42051
gerardwr wrote:Library from Bill Greiman :https://github.com/greiman/SSD1306Ascii


The Adafruit and squix78 libraries work fine for me too but I do prefer the Greiman code:
- its a text-only library and very compact. The other libs also support graphics, but that adds to the bulk of the code. Not a real problem for the ESP but I use the same code on Arduino Nano too, the other libs were just to big for me.
- It supports the use of print and println, so it's easily added to a sketch for debugging purposes.