You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While playing with the library and especially things like <<= I quickly ran into the issue that for the BitBangDevice the port value is getting > 255 which wil then cause the chr(value) to try to generate something that can't later be encoded in device.py write().
For me I fixed this by masking the value the setter gets with & 0xff so I can make sure that it behaves as if it was an 8 bit integer.
The text was updated successfully, but these errors were encountered:
While playing with the library and especially things like <<= I quickly ran into the issue that for the BitBangDevice the port value is getting > 255 which wil then cause the chr(value) to try to generate something that can't later be encoded in device.py write().
For me I fixed this by masking the value the setter gets with & 0xff so I can make sure that it behaves as if it was an 8 bit integer.
The text was updated successfully, but these errors were encountered: