🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I2C Error 19

    UIFlow
    2
    4
    4.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Flow
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • m5stackM
        m5stack
        last edited by

        could you paste your program screenshot here?

        1 Reply Last reply Reply Quote 0
        • F
          Flow
          last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • F
            Flow
            last edited by

            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?

            1 Reply Last reply Reply Quote 1
            • First post
              Last post