Skip to content

Problem and solution for turzx 3.5 screen not turning off #907

@epocapp

Description

@epocapp

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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions