travisgoodspeed / goodwatch

Replacement board for Casio Calculator Watches using the CC430F6147
502 stars 55 forks source link

Python3 harder for goodwatch.py #135

Open tahnok opened 4 years ago

tahnok commented 4 years ago

Building on #132, I think this produces the same list of bytes that it does in python2, but again, I have no hardware to test on (yet!)

One oddity I noticed (being no expert on CRCs) is that the actual number computed in the CRC function is quite large before the last 2 bytes are taken, which prevented me from using crc.to_bytes(2, byteorder='little').