Skip to content

Commit ae31745

Browse files
committed
ledmatrix_control: Add sleep/wake buttons back
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent d3a5a99 commit ae31745

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ledmatrix/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,5 @@ Same for the `SLEEP#` pin.
212212

213213
The sleep/wake command always changes the state. But it can't be received when USB is suspended.
214214

215-
The idle timer will send the device to sleep after a configured timeout.
215+
The idle timer will send the device to sleep after a configured timeout (default 60 seconds).
216+
The idle timer is reset once the device wakes up or once it receives a command.

ledmatrix_control.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,9 +1108,8 @@ def gui(devices):
11081108
sg.Button("Stop", k='-STOP-EQ-')
11091109
],
11101110

1111-
# Recent hardware sleeps based on sleep pin, not command
1112-
#[sg.Text("Sleep")],
1113-
#[sg.Button("Sleep"), sg.Button("Wake")],
1111+
[sg.Text("Sleep")],
1112+
[sg.Button("Sleep"), sg.Button("Wake")],
11141113
# [sg.Button("Panic")]
11151114
]
11161115
window = sg.Window("LED Matrix Control", layout)

0 commit comments

Comments
 (0)