Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. guymanuel
    3. Posts
    G
    • Continue chat with guymanuel
    • Start new chat with guymanuel
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by guymanuel

    • 'module' object has not attribute 'ENV3'

      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?

      posted in UIFlow
      G
      guymanuel