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 example provided in comments of i2c.py does not works for me, appears a TypeError message:
"For example:
from quick2wire.i2c import I2CMaster, writing
with I2CMaster() as i2c:
i2c.transaction(
writing(0x20, bytes([0x01, 0xFF])))"
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: 'tuple' object is not callable
I have to change it to this for it to work:
For example:
from quick2wire.i2c import I2CMaster, writing
with I2CMaster() as i2c:
i2c.transaction(
writing(0x20, (0x01, 0xFF)))
The text was updated successfully, but these errors were encountered:
This example provided in comments of i2c.py does not works for me, appears a TypeError message:
I have to change it to this for it to work:
For example:
The text was updated successfully, but these errors were encountered: