Jump to content

Recommended Posts

Posted
1 hour ago, Toastie said:

Not exactly: The one's (:steve: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.

Posted

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'

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...