slave-testbench-23/eProm.py

13 lines
351 B
Python
Raw Normal View History

2023-04-01 18:53:28 +02:00
import canTest
2023-04-01 18:55:55 +02:00
2023-04-01 18:53:28 +02:00
def ePromTest():
2023-04-01 18:55:55 +02:00
print("start eprom test")
message = [4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
canTest.waitForUserInput(True)
canTest.sendMessageOnCan(message)
answer = canTest.recive()
print("ePromTest reult {}".format(str(answer.data) == "bytearray(b'iiiiBiii')"))
2023-04-01 18:53:28 +02:00
2023-04-01 18:55:55 +02:00
print("I am done with this shit")