🤖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.
  • Canvas don't work on M5Stack Core 2

    3
    0 Votes
    3 Posts
    4k Views
    pavelprostoP
    code: import lvgl as lv canvas = lv.canvas(lv.scr_act(), None) error: Traceback (most recent call last): File "<stdin>", line 2, in <module> AttributeError: 'NoneType' object has no attribute '__dereference__'
  • Use lvgl canvas on Core2

    micropython
    3
    1 Votes
    3 Posts
    8k Views
    pavelprostoP
    it was 2022, canvas does not work as before 😭😭😭
  • Pure Micro Python without Ui-Flow on my M5Stack core2

    23
    0 Votes
    23 Posts
    76k Views
    S
    Is it possible to use m5stack_ui here? How do it?
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    36 Views
    No one has replied
  • Micropython on the core2

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @mwright Have you tried visiting Micropython.org? These is an esp32 sub forum that has a few M5Stack members in it.
  • Where to find m5stack and m5ui modules?

    2
    0 Votes
    2 Posts
    4k Views
    ajb2k3A
    The modules are so far only accessible via the REPL run on a device. I wrote a guide here that while targeted to the ATECC608b shows how to access real to find modules. https://www.hackster.io/AJB2K3/accessing-the-atecc608-part-2-edbe5e
  • Solved - lcd.xxx() don't work

    micropython
    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • MicroPython unstable ADC readings +/- 5% between reads

    3
    0 Votes
    3 Posts
    5k Views
    B
    There are lots of ways to filter this type of data. The mean is one but you can also use median or an FIR filter. Take a look 🤗 Fábio Dias
  • 0 Votes
    5 Posts
    8k Views
    B
    I am designing a GPS disciplined oscillator and the goal is for a short-term stability to be better than 1 part per 10 to the 9th cycles. The uBlox GPS has 2 counter inputs. Approximately every second (1 measurement cycle) the GPS reports the count and the time of the last rising and falling edges on the counter inputs. These are reported to the nanosecond (10 to the -9 seconds). By subtracting the previous count and rising edge time from the current measurement you will get the number of counts and the time difference. From this you can calculate the frequency to approximately 1 part in 10 to the 9th. In the actual implementation you do this over a period of hundreds of seconds. In the example I gave the single precision calculation was in error by over 46 milliseconds. In a 1 second measurement this is approximately a 4.6% error! The problem arises because you are adding a very large number (5.31316281 x 10 to the 5th) to a very small number (657346 x 10 to the -4) and you need a result accurate to 9 decimal places not 1 decimal place. In the actual calculation these numbers were first scaled by a factor of 1000 and 1000000000 respectively so they were even larger numbers to start with. This code runs fine on a Pyboard with their double precision code. I would prefer to use a Core2 unit which has a much nicer display and form factor than the Pyboard and its display. I believe the effort to create this new image is as simple as changing 1 definition to tell the compiler to compile code for double precision instead of single precision. If you interested here is a link to an individual who did this for the PI Pico. https://forums.raspberrypi.com/viewtopic.php?t=319525 For someone with the correct tools, knowledge and the source it appears to be a relatively easy task. Tools and knowledge I don’t have. In this case most of the effort would be in making people aware of the other firmware image and making it available for download.
  • Load Micropython on M5 Stamp Pico

    3
    0 Votes
    3 Posts
    5k Views
    M
    Yes the baud rate is correct. The characters are not random. They appear to be a CRC error and it is being sent in hex rather than ASCII. Anyway, I found that if I loaded the ESP32 generic binary file then it works. At least I can get to a Micropython REPL prompt. Of course, this version is probably going to me missing the libraries that I will need. I guess I will have to build my own binary version.
  • Crashes / exception with atomlite

    3
    4
    0 Votes
    3 Posts
    5k Views
    M
    it fixed my problem with the crashes, but now i have no QoS 1
  • Increase font size

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Where is asyncio?

    9
    0 Votes
    9 Posts
    12k Views
    ajb2k3A
    @robjasey said in Where is asyncio?: So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh. Well that's a pain. Sorry I can't help more.
  • Bug in Micropython. '#' causes Syntax error on Core

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • [closed] Micropython Jquery confusion.

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Atom always connects to AP with lowest signal ( 3 APs with same SSID)

    3
    0 Votes
    3 Posts
    5k Views
    M
    The APs have 2ghz and 5ghz: wifi.scan show them here. it connects always on the AP with 22851-Gast Channel 1 with has really bad rssi -91 and not with the one 22851-Gast channel 11. i think the logic needs to impore here. or i need do write a function which searches for the best one and connects to it. (b'Labor', b'X\xc1z\xe5a\xc0', 11, -52, 3, False), (b'Phone', b'X\xc1z\xe5a\xc1', 11, -52, 3, False), (b'22851-int', b'X\xc1z\xe5a\xc2', 11, -52, 3, False), (b'22851-Gast'\xe5jA', 6, -68, 3, False), (b'Phone', b'X\xc1z\xe5jB', 6, -69, 3, False), (b'22851-Gast', b'X\xc1z\xe5j@', 6, -70, 3, False), (b'22851-Gast', b'X\xc1z\xe5l\xf1', 11, -80, 22851-int', b'X\xc1z\xe5l\xf0', 11, -80, 3, False), (b'22851-int', b'\xbc\xe6|^\x9f\x10', 6, -91, 3, False), (b'22851-Gast', b'\xbc\xe6|^\x9f\x11', 6, -91, 3, False), (b'Ph^\x9f\x12', 6, -93, 3, False), (b'Lager', b'X\xc1z"\xae ', 11, -94, 3, False)] i tried to use "WLAN.connect(ssid=22851-Gast, password=dfsfs, *, bssid=b'X\xc1z\xe5l\xf1)" to connect to the bssid specific which good connection but this is not working it says to much arguments taken
  • M5stack fails to connect with blynk

    6
    1
    0 Votes
    6 Posts
    9k Views
    ajb2k3A
    Not only that but the OLD password system has been upgraded to use certificates and encryption keys.
  • esp32.RMT constructor example is not accepting the tx_carrier parameter

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • How to see print() output and REPL from VSCode?

    6
    2
    0 Votes
    6 Posts
    12k Views
    F
    Currently my solution is that I wrote software that tunnels data between a virtual serial port and a real one, while displaying it to me. It uses com0com to setup the fake serial port. Basically, m5stick is COM4, com0com is configured with fake COM6 and COM7. COM6 is connected to COM4 via my app and I can see the text in between them and inject keystroke too. VSCode talks with COM7 and all of the data from COM7 goes to COM6, to my screen, then to COM4 I also coded it so if I hit ESC, it sends the CTRL-C signal to the terminal so it brings up REPL. (pressing CTRL-C will quit the whole terminal lol) This solution still sucks, exceptions are still printed to the LCD instead of to the COM port
  • [fixed]atomlite 1.9.7 name 'wlan' isn't defined

    4
    0 Votes
    4 Posts
    7k Views
    M
    wlan = network.WLAN(network.STA_IF) is [image: 1654418854823-a0cdea9b-ae52-4361-82e6-68b7f114500a-image.png] i didnt used create station interface because of that wlan wasnt defined!