Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Mikejstb
#14302 I'll probably play with the little 128x96 display tomorrow.
Did you use the default of gpio 13 & 14 pins?
I did, and I knew the I2C address from using the i2cscanner with an Arduino Uno.

Hopefully you'll get it to work - I'll post my results once I've tried the little display tomorrow.
User avatar
By ian
#14346 I'm using a ESP-01 for this so I only have gpio 0 & 2. Your MQTT example works fine.
I guess we're both talking about ssd1306 oleds?
I was trying to use a library found here: http://blog.oscarliang.net/arduino-oled ... y-library/
This works fine with a 'normal' arduino & it looked (to me!) as if it would require very little modification.
I modified the library a little & got it compiling ok for the ESP8266 but it didn't work.
I'm unlikely to have time to return to this for a little while so I wish you luck!!

Cheers
Ian
User avatar
By ian
#14355 I will later - just about to leave for work :(
BUT - I discovered another problem with this library (and the seeed studio library which is similar)
I said it works on an arduino - it does & it doesn't.
I had it working at the weekend with arduino & have since discovered that it will only work AFTER the display has been initialised using the adafruit library. Maybe it will work with ESP8266 if it's correctly initialised..