🤖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.
  • Uploading and running micropython code...?

    8
    0 Votes
    8 Posts
    15k Views
    ajb2k3A
    @world101 said in Uploading and running micropython code...?: One thing I just noticed. If I run an ampy command (ampy -p /dev/tty.SLAB_USBtoUART -b 115200 ls) before doing the screen session, I get the REPL prompt every time without needing to press Ctrl+C. Running an ampy command must break the m5stack out of the currently running main program loop, which is what Ctrl+C does anyway. Just wanted to provide that additional detail. Strange, didn't work for me.
  • Is there any MicroPython firmware for StickC?

    9
    0 Votes
    9 Posts
    18k Views
    H
    In v1.3.1, beep can be close in setup
  • Can't access R.E.P.L on M5Go 1.2.3

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @heybin Thats what i'm wondering, I get the serial monitor on the port but just can't get into REPL.
  • [Solved]sleep mode on MircoPython?

    Moved
    5
    0 Votes
    5 Posts
    15k Views
    A
    @m5-docs Thanks, mine's version is: "MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on M5Stack with ESP32", that is distributed for UI flow 1.2.3. I burned UI flow 1.3.0-beta, and found machine.lightsleep() is available.
  • 0 Votes
    36 Posts
    162k Views
    m5-docsM
    @foxhound Best wish to you !
  • 0 Votes
    6 Posts
    15k Views
    f3rn4nd0dF
    Well, I've managed to do on a different way, thanks a lot for your help. Here is the code: #import wifisetup #wifisetup.auto_connect() import network from m5stack import * from m5ui import * from m5_pin import * from m5mqtt import M5mqtt from time import strftime, ticks_ms, ticks_diff, sleep_ms import utime import _thread def connect(ssid,auth,timeout=6000): from network import WLAN, STA_IF, AP_IF global uplink uplink = WLAN(STA_IF) uplink.active(True) uplink.connect(ssid, auth) started= ticks_ms() while True: if uplink.isconnected(): return True else: if ticks_diff(ticks_ms(), started) < timeout: sleep_ms(100) continue else: return False wlan = network.WLAN(network.AP_IF) while True: if connect('Wifi1', 'password1'): red='Wifi1' break elif connect('Wifi2', 'password2'): red='Wifi2' break print('connected to: ',red) ...
  • [Solved]Trouble burning MicroPython firmware

    8
    0 Votes
    8 Posts
    21k Views
    J
    If you install uiflow firmware you have also installed micropython. You can connect to a repl shell, load libraries, and modify main.py. You can use any micropython ide and you aren't required to use uiflow. It is a good option though. I like using upycraft. Even if I am running uiflow I'll still keep a connection to the board open with upycraft to get immediate feedback. With upycraft you have direct access to the filesystem and you can drag and drop files to and from the board. You can also run help('modules') dir(module) where module is one of the listed modules. To learn more of all the built in functions available.
  • eFuse error with MicroPython firmware

    7
    0 Votes
    7 Posts
    15k Views
    A
    Thank you @ajb2k3 and @watson, I'm up and running now and appreciate your help.
  • Web IDE source code

    3
    0 Votes
    3 Posts
    6k Views
    M
    Thank you for this. Actually I have now worked out how to do things via the command line now so all is well. :-)
  • Where is the reference of m5ui?

    Moved
    5
    0 Votes
    5 Posts
    10k Views
    K
    @heybin Hi heybin. Thank you for your information! I'll read it.
  • [Solved]problem with mojave mac

    Moved
    2
    0 Votes
    2 Posts
    6k Views
    ajb2k3A
    @360fashion said in problem with mojave mac: i cannot find a way to flash the new software on the m5 with the mojave mac. i get an error saying that it is not possible to install on mac. Follow the instructions posted by lucas in this discussion. http://forum.m5stack.com/topic/441/camera-compile-help-please/7