Toastie Posted 9 hours ago Posted 9 hours ago Not exactly: The one's (here is to @BrickTronic) complement of your checksum is wrong: 0xFF-0x5B=0xA4, if I am not mistaken. Best Thorsten Quote
AJB2K3 Posted 8 hours ago Posted 8 hours ago 1 hour ago, Toastie said: Not exactly: The one's (here is to @BrickTronic) complement of your checksum is wrong: 0xFF-0x5B=0xA4, if I am not mistaken. Best Thorsten Opps, thanks for giving it a look. Quote
Bliss Posted 2 hours ago Author Posted 2 hours ago I updated LegoRcx.py in the Dropbox link. I just added the LastCmdSerStr that you can use to print the last Serial Command String. Example: >>> from legorcx import RCX >>> r=RCX("COM17") >>> r.snd(2) >>> print(r.LastCmdSerStr) b'\x55\xff\x00\x51\xae\x02\xfd\x53\xac' >>> r.snd(2) >>> print(r.LastCmdSerStr) b'\x55\xff\x00\x59\xa6\x02\xfd\x5b\xa4' Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.