'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 hatsetScreenColor(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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login