-
-
Notifications
You must be signed in to change notification settings - Fork 288
Open
Labels
bugSomething isn't workingSomething isn't working
Description
My turzx 3.5 screen would not turn off when exiting the app or going into sleep.
I've looked into it and it turns out the 'ScreenOff(self)' function in library\lcd\lcd_comm_rev_a.py is the culprit.
I managed to fix this problem with these following changes,
I don't know why my screen behaves like this, maybe someone more involved with this projet can shed some light
def ScreenOff(self):
self.SendCommand(Command.SET_BRIGHTNESS, 255, 0, 0, 0)
time.sleep(0.1)
self.SendCommand(Command.SCREEN_OFF, 0, 0, 0, 0)
time.sleep(0.1)
self.SendCommand(Command.TO_BLACK, 0, 0, 0, 0)
time.sleep(0.1)
self.SendCommand(212, 0, 0, 0, 0)
Environment:
- Smart screen model [Turing 3.5"]
- Revision of this project [3.9.6 release]
- OS with version [ Windows 10 & Windows 11]
- Python version [Python 3.9]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working