I2C Error 19



  • i have an M5Stack Core 2 with ENVII sensor (Temperature and Humidity). I have not managed to get it to function using Blockly. Error message I2C bus error 19.

    Running 1.85 version with UI Flow 1.7.5.

    Any help would be appreciated.



  • could you paste your program screenshot here?



  • Simple code to test ENVII - I get two possible results

    1. white screen with nothing on it

    or

    1. I2C BUS ERROR 19

    Code

    from m5stack import *
    from m5stack_ui import *
    from uiflow import *
    import time
    import unit

    screen = M5Screen()
    screen.clean_screen()
    screen.set_screen_bg_color(0xd37272)
    env20 = unit.get(unit.ENV2, unit.PORTA)

    label0 = M5Label('Temperature', x=22, y=45, color=0x000, font=FONT_MONT_24, parent=None)

    screen.set_screen_bg_color(0xffff66)
    while True:
    label0.set_text(str(env20.temperature))
    wait(10)
    screen.clean_screen()
    wait(3)
    wait_ms(2)



  • I have found that connecting the ENVIRO module to the Core 2 causes the M5 to lock up. White screen and nothing else.

    Is the issue with the module or software? Is there a Driver issue?