Closed sphh closed 7 years ago
Hi Stephan,
Good idea. I've implemented this on a new branch: https://github.com/harmsm/PyCmdMessenger/tree/add-byte.
I added the byte type to the test suite and README. Would you be willing to test new code in your application to make sure it works? If so, I'll merge the branch into master.
Thanks for the suggestion. Mike
Hi Mike,
It worked for me before I sent you the changes. Since you only changed the type from "b" to "B" in struct.pack()
and struck.unpack()
, I don't see any reason, why it should not work!
Stephan
Great, thanks. (Had to switch to "B" or it would choke for values above 127). Will merge into master.
Hi Mike,
I noticed that I cannot exchange "bytes" as integers between 0 and 255. They are handy to save a bit of dynamic memory on the Genuino. Here are the changes (sorry, no diff...):
Maybe you want to include it in your code...
Cheers, Stephan