Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By halibatsuiba
#31341 Howdy

For some reason Sming example " ScreenOLED_SSD1306" keeps resetting ESP01 continously.
Everything compiles and flashes ok. (To verify environment and flashing: "Basic_Blink"-example works just fine. LED connected to ESP01 blinks as expected.)
Debug output via serial terminal repeats this:
Code: Select allDisplay start
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 20192, room 16
tail 0
chksum 0x22
load 0x3ffe8000, len 1884, room 8
tail 4
chksum 0x20
load 0x3ffe8760, len 1480, room 4
tail 4
chksum 0xe2
csum 0xe2
rfs.start: size:256 Kb, offset:4023C000


I am using this oled display (I2C):
http://www.ebay.com/itm/0-96-I2C-IIC-SP ... 2807fae013

This line seems to cause reset:
Code: Select alldisplay.begin(SSD1306_SWITCHCAPVCC, 0x78, false);

Display address is set to 0x78.

I also changed program to I2C mode:
Code: Select allAdafruit_SSD1306 display(4);


System info:
Windows 10
Sming installation per these instructions: https://github.com/SmingHub/Sming/wiki/ ... tall-sming

I have spent three nights trying to figure this out. I would be very grateful if someone could give me advice or point me to some solution.

Thank you very many... I mean "very much".
User avatar
By alonewolfx2
#31377 you can change i2c address in sming/libraries. library doesnt support i2c address setting on class for now. here is address definition https://github.com/SmingHub/Sming/blob/ ... 1306.h#L42
User avatar
By frankDownunder
#38763 Hi, I am using the same OLED module. I have it working - I accidentally used the code at
~/Sming/Sming/Libraries/Adafruit_SSD1306/examples/ssd1306_128x64_i2c - which had many issues. The example you used looks better. Have you got it working yet?
I used I2C at 0x3C
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3C (for the 128x64)