Skip to content

Commit

Permalink
Pushed assertions into firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
rsevidal authored Nov 2, 2024
1 parent df2f631 commit 500c3db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Assertion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from serial import Serial, SerialException

with Serial('/your/port', 9600) as ser:
ser.write(bytes([0x1]))
assert ser.read() == bytes([0xaa])

ser.write(bytes([0x0]))
assert ser.read() == bytes([0xaa])

ser.write(bytes([0x2]))
assert ser.read() == bytes([0xff])

0 comments on commit 500c3db

Please sign in to comment.