Navigation

    M5Stack Community

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

    Topics created by JackH

    • J

      Does Anybody Use UIFlow for Anything Concrete Poll
      SOFTWARE • • JackH

      11
      0
      Votes
      11
      Posts
      9903
      Views

      J

      Ok, so after 10 days we have: UiFlow - 5 MicroPython - 5 Arduino/PlatformIO - 6 M5EZ - 2 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?
    • J

      Run Script Automatically when First Turned On
      Micropython • • JackH

      4
      0
      Votes
      4
      Posts
      4793
      Views

      J

      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.
    • J

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

      6
      0
      Votes
      6
      Posts
      7512
      Views

      A

      You can always use sprites to get rid of flicker. It happens because you write to LCD in runtime which is slow. Try sprites; First, create a sprite and set the size. Then fill it in black to avoid overwriting text. disp_buffer = new TFT_eSprite(&M5.Lcd); disp_buffer->setSwapBytes(false); disp_buffer->createSprite(240, 135); disp_buffer->fillRect(0, 0, 240, 135, BLACK); Then write desired text and push it to screen. disp_buffer->drawString("This is some text", 0, 0, 2); disp_buffer->pushSprite(0, 0);
    • J

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

      4
      0
      Votes
      4
      Posts
      5829
      Views

      Hello Jack you are welcome and thank you. You'll need to check the MPU6886 datasheet There is a sleep mode bit (Bit 6) in register 107 (power management 1). When I read that register I get 0x01 which seems to be the default. To put MPU6886 into sleep mode I'd write 0x41 into that register like that: import i2c_bus i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x68, freq=400000) i2c0.write_u8(107, 0x41) Thanks Felix
    • J

      Need M5Stack and Other Modules to Compile uPython from Scratch
      Micropython • • JackH

      1
      1
      Votes
      1
      Posts
      2186
      Views

      No one has replied

    • J

      Where does all the RAM disappear?
      Micropython • • JackH

      8
      0
      Votes
      8
      Posts
      6814
      Views

      T

      @mb You need to read a bit about py and c++ difference
    • J

      M5stickC and Plus MicroPython Screen Driver
      Micropython • micropython • • JackH

      1
      1
      Votes
      1
      Posts
      2980
      Views

      No one has replied

    • J

      Anybody got ulab (micro-numpy) working?
      SOFTWARE • • JackH

      1
      0
      Votes
      1
      Posts
      1853
      Views

      No one has replied