multiple i2c bugs



  • I am trying to get the CoreS3's proximity and ambient light sensor to work in UiFlow2.0 and I am having these problems.
    1: i2c "Generate START condition" block shows this error "OSError: I2C operation not supported"
    2: i2c "Scan Device" block returns addresses, but the address for the LTR553 (0x23) does not show up.
    3: You need an object with buffer protocol to send data via i2c but something with buffer protocol (like bytearray) does not work.

    Any help or bug fix/update is much appreciated!



  • Hello @HWTaro9

    1: not sure when this is actually needed.

    2: I2C scan returns a list with decimal values (not hex) therefore you should be looking for the decimal value 35 (=0x23) in the list.

    3: I am able to write to and read from the light sensor like below:

    0_1684787251587_UIFlow2_CoreS3_Lightsensor_20230522.png

    Thanks
    Felix



  • Thank you very much for the info and code! But the reason I need to send a start command is because the microphone decoder only sends code after a start condition is sent, and I'm not sure that it is sent automatically.



  • Hello @HWTaro9

    it is my understanding that audio data from the microphones are being sent via I2S (not I2C), no?

    Do you have a document explaining the I2C commands of the ES7210?

    Thanks
    Felix



  • This post is deleted!




  • Hello @HWTaro9

    that is only the general description of how I2C works. Or am I missing something?

    I am looking for a list of register addresses which can be read and write to.

    Thanks
    Felix