Navigation

    M5Stack Community

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

    Posts made by samjami

    • RE: EXTEND IO Unit - is anyone successfully using this unit? If so, please help!

      Thank you for the above comments.

      I am using the official M5Stack but bought from different suppliers from here in the UK.

      I have now tested the 3 units successfully by accessing them directly via the I2C bus address and registers rather than the UIFlow Unit ExtIO libraries. I can read and write to the IO using this method so I suspect there is a bug in one of the UIFlow library routines. I have raised this with M5Stack and I believe they are looking into it.

      It would still be great to know how others are using and accessing the ExtIO Unit especially using it via the Pa.Hub. Thank you again.

      posted in General
      S
      samjami
    • EXTEND IO Unit - is anyone successfully using this unit? If so, please help!

      Hi,
      I have now unsuccessfully tried 3 different Extend IO units (2 arrived today from different suppliers) on 3 different M5Stacks (Fire and Gray). I have also tried the units via a Pa.Hub but they still give an error.
      Other units, eg Temp, PIR have worked OK.

      It would be great to know if anyone is successfully using these units before I spend more time on this method of getting more IO onto the M5Stack.

      I have used Blockly V1.5.4 and 1.4.5 to write simple test routines.

      Errors on M5Stack display:

      "ERROR
      local variable referenced before assignment"

      or

      "Unit: Ext IO unit may not be connected"

      Any help or advice would be welcomed.

      posted in General
      S
      samjami
    • EXT.IO Unit ERROR problem

      I have spent several hours trying to use an Extend IO Unit with M5Stack Fire (and also tried an M5Stack Grey) but when running any simple UIFlow code including the 'EXT.IO Unit' I get the error below. It looks like there is a bug in the 'import unit' library or am I missing something!
      Can someone please point me in the right direction?

      Python code:
      from m5stack import *
      from m5ui import *
      from uiflow import *
      import unit

      setScreenColor(0x222222)
      ext_io0 = unit.get(unit.EXT_IO, unit.PORTA)

      Error on M5Stack display:
      ERROR
      local variable referenced before assignment

      Details:
      File "<string>", line 7, in <module>
      File "unit.py", line 97, in get
      File "<string>", line 1, in <module>
      File "units/_ext_io.py", line 20 in init
      File "units/_ext_io.py", line 25 in _available

      posted in Units
      S
      samjami