Thanks Deanhystad,
You are correct that the board is expecting x/aa to start the command and a check sum byte to end it. Sorry you could not access the URL. I'll try to see what I can do about that.
There is some of this code that I do not understand being a beginner and all.
Just in attempting to learn, I ran your code and got errors. Something about not iterable. Error has something to do with for loops, in your case the 'while', I'm assuming. So I tested and that was not it.
Something to do with the '[]s'. I don't know how to fix.
You are correct that the board is expecting x/aa to start the command and a check sum byte to end it. Sorry you could not access the URL. I'll try to see what I can do about that.
There is some of this code that I do not understand being a beginner and all.
Just in attempting to learn, I ran your code and got errors. Something about not iterable. Error has something to do with for loops, in your case the 'while', I'm assuming. So I tested and that was not it.
Something to do with the '[]s'. I don't know how to fix.
Output:$ sudo python3 SerialTest3.py
Traceback (most recent call last):
File "SerialTest3.py", line 31, in <module>
play_track(ser, [2, 0, 4]) # Track info?
File "SerialTest3.py", line 21, in play_track
write_command(port, [7].extend(track_info))
File "SerialTest3.py", line 10, in write_command
command = [170].extend(command) # Command packet starts with 0xAA
TypeError: 'NoneType' object is not iterable