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

    'module' object has not attribute 'ENV3'

    UIFlow
    2
    2
    2.0k
    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.
    • G
      guymanuel
      last edited by

      I'm using UIFlow to read a temperature from the ENV3 hat connected to a StickC, but am consistently getting the above error on the screen. The code is:

      from m5stack import *
      from m5ui import *
      from uiflow import *
      import hat

      setScreenColor(0x111111)

      hat_env3_4 = hat.get(hat.ENV3)

      label0 = M5TextBox(16, 37, "label0", lcd.FONT_Default, 0xFFFFFF, rotate=0)

      while True:
      label0.setText(str(hat_env3_4.temperature))

      What can be causing this?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @guymanuel

        which UIFlow firmware version is installed on your M5StickC?

        One possible cause I know for this error is a too old UIFlow firmware version running on your M5StickC. I can provoke this error when I load UIFlow firmware version 1.7.5 onto my M5StickC. Newer UIFlow firmware versions seem to be ok.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

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