🤖Have you ever tried Chat.M5Stack.com before asking??😎

Subcategories

  • 7 Topics
    19 Posts
    J
    @pabou try using uiflow to generate the code, then peek copy from there.
  • Where is wifi config held redux

    2
    0 Votes
    2 Posts
    5k Views
    D
    Hmm, OK, get_wifi() works on 1.5.4, so maybe I just guessed wrong back then.
  • Can't instantiate MQTT class (M5 Stick C Plus with Micropython)

    3
    0 Votes
    3 Posts
    6k Views
    R
    @sodoku I see! I'll try that code. Thank you!
  • machine.RTC().datetime parameters

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • Can't import m5stack.rtc on firmware 1.6.6

    2
    0 Votes
    2 Posts
    3k Views
    ajb2k3A
    Looks like rtc is included in one of the other files from m5stack import * from m5ui import * from uiflow import * setScreenColor(0x111111) rtc.setTime(0, 0, 0, 0, 0, 0)
  • Run Script Automatically when First Turned On

    4
    0 Votes
    4 Posts
    10k 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.
  • Disable UIflow on newest MicroPython firmware?

    2
    0 Votes
    2 Posts
    4k Views
    ajb2k3A
    When devices start up, go to setting and set connection mode to USB. Default is set to Wifi/usb.
  • M5StickCPlus MicrPython power saving

    5
    0 Votes
    5 Posts
    8k Views
    felmueF
    Hello @WonkoTheSane Hmm, did you include the line from m5stack import *? I have UIFlow 1.6.6 firmware installed on my M5StickC Plus and use Blockly's Set screen brightness block then switched to the Python tab. Thanks Felix
  • Where does all the RAM disappear?

    8
    0 Votes
    8 Posts
    13k Views
    T
    @mb You need to read a bit about py and c++ difference
  • LCD.image, image rotation

    3
    1
    0 Votes
    3 Posts
    5k Views
    No one has replied
  • RTC (Without battery backup)

    2
    0 Votes
    2 Posts
    7k Views
    felmueF
    Hello @toddkrein you are correct, there is no RTC battery backup in M5Stack Fire. Please note: In sleep modes time accuracy might be affected depending on the clock source used. Please also refer to: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html Cheers Felix
  • Need M5Stack and Other Modules to Compile uPython from Scratch

    1
    1 Votes
    1 Posts
    4k Views
    No one has replied
  • M5stickC and Plus MicroPython Screen Driver

    micropython
    1
    1 Votes
    1 Posts
    6k Views
    No one has replied
  • new folders

    4
    0 Votes
    4 Posts
    7k Views
    D
    I'm trying to do this on the M5StickC and the "mkdir" command doesn't work. It just says "NameError: name 'mkdir' isn't defined" Is there a different module on the M5StickC that holds these file system commands?
  • Can't talk to atom Mini with rshell

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • Connect max7219 to M5stack, can it be done ?

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • GPRS on SIM800L

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • Terminal in VSCode for Windows

    5
    2 Votes
    5 Posts
    11k Views
    lukasmaximusL
    In order to type commands into the console you need to hit ctrl + c to kill any running processes on the device
  • Online MicroPython IDE

    2
    0 Votes
    2 Posts
    5k Views
    lukasmaximusL
    Thanks for sharing @jeff looks cool
  • Creating an infinite async loop

    4
    0 Votes
    4 Posts
    9k Views
    J
    @m5stack I will share pseudo-codes of the current implementation, which is stable so far: CycleTimer = Timer(-1) def main(): # init and connect mqtt client doCycle() def doCycle(): global CycleTimer # send stuff from mqtt # NOTE: do not use machine.lightsleep() as publish() is NOT synchronous # lightsleep() will block data from being sent CycleTimer.init(period=5000, mode=Timer.ONE_SHOT, callback=doCycle) NOTE: this is power-intensive; calling lightsleep() will cause uiflow's mqtt client to crash quickly.
  • Is m5mqtt.publish async?

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied