From 1336bcb751bad9fdb1c6d6b150eb33e7912a0a38 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Jul 2026 00:25:08 -0400 Subject: [PATCH] Update pushbutton.py add ttyd port 8080 --- pushbutton.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pushbutton.py b/pushbutton.py index dcf58e4e..65f6218f 100644 --- a/pushbutton.py +++ b/pushbutton.py @@ -149,7 +149,10 @@ if not GPIO.input(push_button): # if pushbutton is held down during boot sleep(1) result = subprocess.run(['nmcli', 'connection', 'show'], capture_output=True, text=True) print(result, flush=True) - sleep(2) + sleep(2) + result = subprocess.run(['ttyd', '-p', '8080', 'bash', '&'], capture_output=True, text=True) + print(result, flush=True) + GPIO.setup(powerPin, GPIO.OUT) GPIO.output(powerPin, 1) while (True):