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
Hi, success to run your example on python <-> python, but on regular i2c "master" Controller had a problem to be buffer has running, on the Controller in received bytes got 1 or 2 or 8 from 8 bytes array buffer is an like carousel.
Ultra light version to respond 8 bytes array and try to use in infinity loop as 50ms:
buffer_out = bytearray([1, 2, 3, 4, 5, 6, 7, 8])
for value in buffer_out:
while not i2c_responder.read_is_pending():
pass
i2c_responder.put_read_data(value)
The You are possible to mod the class to put_read_data(be possible to ArrayOfBytes[?]) and all i2c slave operations move to thread ?
Thank`s for class!
The text was updated successfully, but these errors were encountered:
Hi, success to run your example on python <-> python, but on regular i2c "master" Controller had a problem to be buffer has running, on the Controller in received bytes got 1 or 2 or 8 from 8 bytes array buffer is an like carousel.
Ultra light version to respond 8 bytes array and try to use in infinity loop as 50ms:
i2c_responder = I2CResponder(
RESPONDER_I2C_DEVICE_ID, sda_gpio=GPIO_RESPONDER_SDA, scl_gpio=GPIO_RESPONDER_SCL, responder_address=RESPONDER_ADDRESS
)
The You are possible to mod the class to put_read_data(be possible to ArrayOfBytes[?]) and all i2c slave operations move to thread ?
Thank`s for class!
The text was updated successfully, but these errors were encountered: