'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?



  • 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