You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yesterday my pull request #44 that introduces a property for the display sleep mode was merged. Unfortunately after further testing I realized, that the sleep mode persists after a soft reboot of the device. This happens for example when I copy new code to the circuitpython drive.
Steps to reproduce
Open a serial connection to the device and enter the REPL
at the beginning of your code. But this is rather ugly because the property needs to be changed twice.
Proposed solution
I did not found a way to query the displays sleep state in the manual. However sending the wake command multiple times to the display seems to have no side effect. Therefore I propose sending the wake command during the initialization of the MacroPad class to ensure the state of the display.
I will provide a pull request for the proposed solution.
The text was updated successfully, but these errors were encountered:
kalehmann
added a commit
to kalehmann/Adafruit_CircuitPython_MacroPad
that referenced
this issue
May 2, 2023
Yesterday my pull request #44 that introduces a property for the display sleep mode was merged. Unfortunately after further testing I realized, that the sleep mode persists after a soft reboot of the device. This happens for example when I copy new code to the circuitpython drive.
Steps to reproduce
Ctrl + D
to trigger a soft reboot and enter the REPL againExpectation
The display wakes up again.
Actual result
The display is still in sleep mode and
Workaround
It is still possible to wake up the display manually by always calling
at the beginning of your code. But this is rather ugly because the property needs to be changed twice.
Proposed solution
I did not found a way to query the displays sleep state in the manual. However sending the wake command multiple times to the display seems to have no side effect. Therefore I propose sending the wake command during the initialization of the
MacroPad
class to ensure the state of the display.I will provide a pull request for the proposed solution.
The text was updated successfully, but these errors were encountered: