Navigation

    M5Stack Community

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

    Posts made by JackH

    • RE: M5Stick-C-Plus LCD-Driver

      No, it's one of the main reasons why those who would like to run bare metal MicroPython are instead forced to use the bloated UIflow firmware, which has the relative unexposed 'lcd' driver within it in module 'm5stack'.

      Over a year and still waiting for independent MicroPython versions of such modules ...

      posted in Micropython
      J
      JackH
    • RE: [Core2] How to download JPG from web and display it on screen?

      Is it possible that lcd.image expects an image smaller than the lcd? Perhaps it needs to be resized.
      Have you tried displaying a small image?

      posted in Core 2
      J
      JackH
    • RE: Preferred development flow

      +1 for Thonny, works great. Only drawback is that it does not yet have debug functionality for MicroPython.

      posted in Micropython
      J
      JackH
    • RE: [M5Core] empty UIFlow firmware

      Related to this request would be having the possibility of burning bare MicroPython from source, bringing in all M5Core drivers, and adding any user made apps, tables and pre-cooked code.

      posted in Features Wish List
      J
      JackH
    • RE: Does Anybody Use UIFlow for Anything Concrete Poll

      Ok, so after 10 days we have:

      1. UiFlow - 5
      2. MicroPython - 5
      3. Arduino/PlatformIO - 6
      4. M5EZ - 2
      5. ESP-IDF - 0

      I'd be interested to hear from more people. M5Stack, do you have an idea of the distribution of operating systems for the community at large?

      posted in SOFTWARE
      J
      JackH
    • RE: Does Anybody Use UIFlow for Anything Concrete Poll

      A good mix so far, interesting. Feel free to add your own, oh silent reader ;-)

      posted in SOFTWARE
      J
      JackH
    • RE: Does Anybody Use UIFlow for Anything Concrete Poll

      I'll start. I use

      2 = MicroPython

      posted in SOFTWARE
      J
      JackH
    • RE: Run Script Automatically when First Turned On

      OK it works. So for future reference this is what I did:

      • Turn on the unit (mine is an M5StickC with UIFlow 1.6.6 firmware)
      • press the M5 button quickly after that to enter setup mode (my screen shows <code>)
      • side button to get the Setup menu
      • M5 again to select it
      • Switch Mode
      • M5 again
      • side button to select APP
      • side button to select '..' at top
      • M5 to go back to previous menu
      • side button to select Reboot
      • M5 to reboot

      From now on whenever you turn it on the Stick will run boot.py and then main.py in the /flash directory.

      If when it's so running you attach the device to a computer via the USB cable, you can interrupt whatever it is doing by starting Thonny and hitting ctrl-F2 (Stop/Restart Backend), which will bring up the MicroPython REPL prompt. Cool.

      posted in Micropython
      J
      JackH
    • Does Anybody Use UIFlow for Anything Concrete Poll

      I am curious about software platform usage in M5Stack devices, so here is my poll, just reply with the number that applies to you:

      1. UIFlow (1.9k posts)
      2. Micropython (392)
      3. Arduino IDE (359)
      4. M5EZ (39)
      5. ESP-IDF (13)

      The figures on each line are the number of posts shown for each in the forum today.

      Thanks for participating
      Jack

      posted in SOFTWARE
      J
      JackH
    • RE: Run Script Automatically when First Turned On

      Excellent, I will try that, thank you very much.

      posted in Micropython
      J
      JackH
    • RE: Newbie questions (sorry)

      @erich re: your other question

      For MicroPython I use Thonny, it's bare bone but does the trick. Have a look at this to get started.

      Jack

      posted in Core 2
      J
      JackH
    • Run Script Automatically when First Turned On

      I would ideally like to load a bare metal MicroPython firmware with the M5stack libraries tagged on - but since the latter bit of code is not forthcoming (:( I have resorted to using the standard UIFlow 1.6.6 firmware and:

      1. Connect M5SticKC to computer via USB
      2. Turn the Stick on
      3. Start Thonny
      4. Stop/Restart the Stick via Thonny Ctrl-F2
      5. Open my.py file with Thonny
      6. Run my.py via Thonny F5

      Except that what I would really like to do is just turn on the Stick and have it run my.py automatically, independently of Thonny or any computers. How can I do that?

      You'd think someone else would have had a similar question but I have searched far and wide for variations on the title of this post to no avail.

      Thanks,
      Jack

      posted in Micropython
      J
      JackH
    • RE: Avoid LCD Flicker When Updating Text on M5StickC?

      Thanks @felmue and @robalstona , I will try your suggestions tomorrow.
      Jack

      posted in Micropython
      J
      JackH
    • Avoid LCD Flicker When Updating Text on M5StickC?

      I measure quantities and display them every tenth of a second or so. The screen flickers annoyingly.

      I have tried lcd.clear() and overwriting with the previous text with lcd.Black color in between writes but they both flicker the same way. printing '\r' on each line before writing text doesn't work either.

      Other suggestions?

      posted in Micropython
      J
      JackH
    • RE: UIFlow 1.6.5

      Yes, @ajb2k3, it was you I was looking for! :-)

      Now 1.6.5 is there in my original download, so I guess we don't have to download a new M5 burner any time there is a new release, thank you.

      I should mention that M5Burner says that Base Micropython is v1.11 while os.uname() says it is in fact v1.12

      Jack

      posted in Official Updates
      J
      JackH
    • RE: UIFlow 1.6.5

      Hello, helloo, helooo... Is there anybody out there!?! Cue Pink Floyd :-)

      posted in Official Updates
      J
      JackH
    • RE: UIFlow 1.6.5

      I don't see it in the M5burner I downloaded a couple of weeks ago. Do we have to download M5burner again every time there is a new version?

      posted in Official Updates
      J
      JackH
    • RE: Where does all the RAM disappear?

      @robalstona Interesting, thankyou.

      posted in Micropython
      J
      JackH
    • RE: M5StickC Plus MicroPython: Use GPIO 25 and 26 for I2C, 36 Floating

      Excellent, thank you very much Felix. And nice informative site you have there!

      May I ask how you ensure that MPU6886 is off in MicroPython?

      posted in M5 Stick/StickC
      J
      JackH
    • M5StickC Plus MicroPython: Use GPIO 25 and 26 for I2C, 36 Floating

      Hi, I would like to use the GPIO 25 and 26 pins in the header for I2C, so I am setting them up as follows in MicroPython:

      from machine import Pin, I2C
      i2c = I2C(1, scl=Pin(26), sda=Pin(25), freq=400000)

      However, the description says that "G36/G25 share the same port, when one of the pins is used, the other pin should be set as a floating input" and provides the following example

      For example, to use the G36 pin as the ADC input, Configuration the G25 pin as FLOATING
      setup()
      {
      M5.begin();
      pinMode(36, INPUT);
      gpio_pulldown_dis(GPIO_NUM_25);
      gpio_pullup_dis(GPIO_NUM_25);
      }

      It seems that I should set GPIO36 to Floating. How does one do this in MicroPython, and where could one find such settings in the documentation? I have looked for a couple of hours and can't find this anywhere.

      Jack
      PS How do you create a code window on this board?

      posted in M5 Stick/StickC
      J
      JackH