working full

This commit is contained in:
Siwat Sirichai 2025-06-06 17:10:37 +07:00
parent 70786734bd
commit 7921e4417c
2 changed files with 12 additions and 9 deletions

View file

@ -50,6 +50,9 @@ def test_serial_connection():
try:
print("Expected packet: 801s!000\\r (where 21 hex = ! ASCII, length=8 includes length byte)")
board.set_power(PowerState.ON)
time.sleep(2)
board.set_volume(20)
board.set_video_source(VideoSource.OPS)
print("Power OFF command sent successfully!")
except Exception as e:
print(f"Failed to set power OFF: {e}")