Navigation

    M5Stack Community

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

    guymanuel

    @guymanuel

    0
    Reputation
    2
    Posts
    394
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    guymanuel Follow

    Posts made by guymanuel

    • ENV III Error in UIFlow 2

      I've been getting this error just from adding the unit and trying to run the program with it initializing:

      Traceback (most recent call last):
      File "<stdin>", line 25, in <module>
      File "<stdin>", line 13, in setup
      TypeError: function takes 4 positional arguments but 2 were given

      This is just from the default init code that is added when you include a unit. Any idea how to fix this?

      posted in Units
      G
      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