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

Subcategories

  • Lessons and Guides for Uiflow

    125 Topics
    434 Posts
    A
    Hi, I'm a new user of M5stack products, having got an M5StickC Plus2 recently. It's a nice device, but the documentation isn't always accurate which makes learning how to use it a slow process. I tried to use the example for drawing a raw buffer to the screen here But it resulted in different garbled output each time and not a green rectangle. It seems that the len parameter is expecting 16-bit entries in the buffer so needs to be halved. Here's the code that works on my device (note the //2 for len parameter): width, height = 40, 30 green565 = 0x07E0 raw_buf = bytearray(width * height * 2) for i in range(width * height): raw_buf[2*i] = (green565 >> 8) & 0xFF raw_buf[2*i+1] = green565 & 0xFF Display.drawRawBuf(raw_buf, 100, 100, width, height, len(raw_buf)//2, swap=False) Hopefully this will help others and eventually get changed in the docs - assuming it's the same for all UIFlow2 supported devices? If anybody knows a fix to make it work properly for lower than 16bit depth screens so I can draw a raw buffer to a 1-bit canvas properly, please let me know!
  • 211 Topics
    789 Posts
    robskiR
    @GiovanniCaenazzo disconnect M5Dial press and hold boot button at the back ofM5Dial - in the middle of Stamp Controller - it is very gentle switch connect M5Dial to USB M5Burner should detect com port in boot mode
  • 11 Topics
    33 Posts
    A
    @jeanfabre On web, just choice block type. [image: 1729260517944-86b7a25c93207d9a32e5b33471bb1f0.png] For code, add return description like this: def func(self) -> int: return 0
  • TCP connection instead of a UDP connection

    1
    2 Votes
    1 Posts
    2k Views
    No one has replied
  • UIFlow wifi connect forces screen background to be white

    5
    0 Votes
    5 Posts
    6k Views
    greenleafG
    After some more troubleshooting I discovered that a 10ms wait after changing the screen color allows the first few lines to print when working in UIFlow. It appears that 'Set Screen backgroundColor' requires this delay before you can render text with Lcd.print. This doesn't solve the mystery of the white screen when running in app mode though. Maybe someone else knows what's going on here.
  • Modbus Master functions broken?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • HX711 scale unit - calibration factor in UiFlow

    3
    1 Votes
    3 Posts
    7k Views
    B
    it has been two years - i cannot find the calibration. can anyone help me ? is it still not implemented or maybe i cannot find this?
  • 0 Votes
    7 Posts
    7k Views
    M
    hi, i`m new with m5stack, i wrote your blocks and i receive serial dat in touchdesigner, but how i do for the information of my servo appear in touchdesigner and then work with those data to other operators ? many thks !! :)
  • EspNow Add peer macaddress not possible with vairable

    2
    1
    0 Votes
    2 Posts
    3k Views
    felmueF
    Hello @Luc3DSupplies you could try to use an Execute code: block like this: [image: 1658805086183-uiflowespnowpeerpervar_20220726.png] BTW: The content of the Execute code: block can be found by adding the Add peer block and then switching to the Python tab. Note: Above code is untested. Thanks Felix
  • Connecting to AWS using LAN Base

    5
    0 Votes
    5 Posts
    5k Views
    H
    @ajb2k3 I was able to subscribe via Wi-Fi using the AWS block. However, when I turned off Wi-Fi with LAN Base connected, I could not communicate.
  • Blinking characters

    9
    0 Votes
    9 Posts
    14k Views
    T
    @world101 said in Blinking characters: @marcvl wordle unlimited said in Blinking characters: I implemented your exact code Not quite exact... I see your issue. You are missing one block that differs from my flow... [image: 1616115294895-screen-shot-2021-03-18-at-7.31.47-pm-resized.png] Thank you so so much. This answer was very very useful to me.
  • Error core to core2

    uiflow
    2
    0 Votes
    2 Posts
    4k Views
    ajb2k3A
    Have you tried re writing for the core as there are pin differences
  • M5StampC3

    10
    0 Votes
    10 Posts
    13k Views
    W
    For the Micropython version esp32c3-20220618-v1.19.1 unfortunately the w-lan does not work properly.
  • sensirion scd30 modbus

    4
    0 Votes
    4 Posts
    7k Views
    ajb2k3A
    I’m sure there was someone who did a MP lib but it’s not in UIFlow and needs to be manually added
  • sensirion sps30 modbus

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • "No module named 'm5stack_ui''

    2
    0 Votes
    2 Posts
    5k Views
    M
    This happens sometimes when I have a UIFlow tab open already for lets say an M5StickC Plus, then open another UIFlow browser tab for a 2nd device like the Core 2. Because I selected Core 2 in the new browser tab, somehow the device selected in the other browser tab changes to Core 2 as well, and it shows that error the first time I run the program on the M5StickC until I update the device type again in that first tab. I have no idea why the UIFlow tabs aren't fully isolated.
  • M5BurnerV3.0 "Timed out waiting for packet header" on Core 2

    5
    0 Votes
    5 Posts
    4k Views
    H
    What do you mean? Typically the Core2 shows up as COM8 and is connected to the side USB SS port.
  • Http Requests using https

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Save variables permanent for power cycle

    4
    0 Votes
    4 Posts
    4k Views
    M
    @felmue Super!!! The EEPROM seem to have some problems with integer values and fast timing. I store my integer now as string and wait until read is finished and it works.
  • M5 LAN Base with Core2 have no function on UIFlow

    5
    0 Votes
    5 Posts
    6k Views
    J
    @felmue Many thanks Felmue previously I'm use other F/W after use 1.9.8 it back to function.
  • FW1.9.9 Unable to control a servo connected to the Atom Matrix

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • It may be linked to another account.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Why can't AtomDisplay save M5f?

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