-->
Page 1 of 1

Issue with lcd refresh and multitasking.

PostPosted: Fri Oct 30, 2020 2:05 am
by Stefunkk
Hi,

I'm trying to make application to control heater and get the temperature readings from ds18b20 sesnors. It's my first days with microcontrollers and c++ so I have almost no knowledge.

My code is here: https://github.com/stefunkk/openstill

For multitasking I'm using esp8266scheduler library, and all delay's I'm using inherit from it.

Now the problem...

When 2 tasks are running and in one of them I'm using this->delay(2000); the lcd is refreshed really rearly, like once every 5 seconds. To make it weirder if i put Serial.println before line which display something on lcd, I can see on console that the code was executed. What am I doing wrong?