slave-testbench-23/eProm.py

13 lines
331 B
Python
Raw Normal View History

2023-04-01 18:53:28 +02:00
import canTest
def ePromTest():
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')"))
print("I am done with this shit")