Implement notetaking app, ST7796 display with touch support, audio beep navigation, and video streaming

This commit is contained in:
Adolfo Reyna
2026-06-08 15:04:36 -04:00
parent 070390355e
commit 3356e5d4a2
30 changed files with 3983 additions and 71 deletions
+39
View File
@@ -0,0 +1,39 @@
import serial
import time
print("Opening serial port /dev/cu.usbmodem101...")
try:
ser = serial.Serial('/dev/cu.usbmodem101', 115200, timeout=1.0)
print("Opened successfully!")
# Clear input buffer
ser.reset_input_buffer()
# Send Ctrl-C to interrupt anything
print("Sending Ctrl-C...")
ser.write(b'\x03')
time.sleep(0.2)
# Read response
if ser.in_waiting:
print(f"After Ctrl-C: {ser.read(ser.in_waiting)}")
# Send newline
print("Sending newline...")
ser.write(b'\r\n')
time.sleep(0.2)
if ser.in_waiting:
print(f"After newline: {ser.read(ser.in_waiting)}")
# Send test print command
print("Sending test print command...")
ser.write(b"print('REPL_ACTIVE')\r\n")
time.sleep(0.5)
if ser.in_waiting:
print(f"After command: {ser.read(ser.in_waiting)}")
else:
print("No response to command.")
ser.close()
except Exception as e:
print(f"Error: {e}")