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
This does not work properly in Python 3.x in version 0.2.2 and earlier
from smbus2 import i2c_msg
address = 80
msg1 = i2c_msg.write(address, 'ABC\xff') # Notice value 0xFF (255) as last value
msg2 = i2c_msg.write(address, [65, 66, 67, 255]) # Same same, just using list instead
msg1.len == msg2.len # False in Python 3.x !!
The text was updated successfully, but these errors were encountered:
kplindegaard
changed the title
Invalid i2c_msg creaed from a string in Python 3.x character value >= 128
Invalid i2c_msg created from a string in Python 3.x character value >= 128
Jan 9, 2019
This does not work properly in Python 3.x in version 0.2.2 and earlier
The text was updated successfully, but these errors were encountered: