ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2.01k stars 638 forks source link

Not working with Ticker library (timer) #313

Closed pabloquimbar closed 3 years ago

pabloquimbar commented 3 years ago

Hi, I programmed a code where some sensors are read by I2C and then the string generated with the sensor's output is sent to the OLED. It works perfectly and I thank you for your amazing library. However, I added now an interrupt with the Ticker library and ask the nodeMCU to do the same. However, this time there are no delays in the code. Just an ISR. Everything seems to work except for the OLED. It gives a problem that resets the microcontroller. If I get rid of the function that calls the OLED writing instructions and put it back in the loop, it works!!

Do you know what may be the problem here? Seems there is some incompatibility. I added an screenshot of the serial port. As you can see, on top there are the measurements of the sensors (in spanish) and then, when I have to write the value in the OLED, the program crashes.

Captura de pantalla 2020-11-20 114407

pabloquimbar commented 3 years ago

I could add the code if you want. It's in spanish and splitted in different .ino, but I think is understandable.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

isaac-bang commented 3 years ago

hello