Posted Wed, 23 Nov 2022 15:51:26 GMT by Grudovik, Ilya
print(display.lightstate) always returns display.STATE_LCD_OFF after power-up

At the same time, the device screen is turned on.
This variable starts to work normally only after writing any value to it.
Perhaps the variable does not have an initial initialization.
Posted Wed, 23 Nov 2022 21:33:34 GMT by M, Liz
Hi, 
The default value should be display.STATE_LCD_50. What firmware version are you running on? This does not appear to be the case on firmware version 1.7.12b.
Posted Thu, 24 Nov 2022 08:25:18 GMT by Grudovik, Ilya
Hi :)
Thank you!
I have to check it out. In the list of fixes, this was not announced and I did not update the firmware.
Posted Mon, 28 Nov 2022 19:24:03 GMT by Grudovik, Ilya
Hello!  I checked version 12... the problem remained.  It still hasn't been fixed.

You must be signed in to post in this forum.