🤖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!
  • 212 Topics
    790 Posts
    Y
    Hello I faced problem about digi-clock write charcter block. Problem is 3rd and 4th digit can not display with this block. I created below flow. Then Digi-Clock displays "0.1.:" for 1st and 2nd digit and colon. [image: 1778319992199-1aae8860-52c1-4c60-9097-5668ed98e2ee-image.jpeg] Howerver, index of write character block can be set only 0 to 4. Therefore it could not display 3rd and 4th digit. I think this index shoud be set 0 to 8. It doesn't work if index forced set to 5 to 8. (It was same behavior as 0 if index is set to 5.) I think the index for DigiClockUnit.set_char should be 0–8, not 0–4. https://uiflow-micropython.readthedocs.io/en/latest/unit/digi_clock.html Could you please kindly consider to fix this issue? (Or let me know please if any other solution available.) #Write raw data and write string blocks are works correctly. Using device -AtomS3 lite -Digi-clock UIFlow version:2.4.4 FW version:2.2.5 OS:Windows11 Thank you in advance Best Regards Yamada
  • 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
  • IUFlow SD Card and Unicode.

    3
    0 Votes
    3 Posts
    6k Views
    C
    @jchipjonty Thank you for your response. You are absolutely right it doesn't look very good. It looks like all text is in bold 12 and accented characters in plain text 10. Not a very elegant solution. Regards Carles
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • UIFlow and ESP-now, error

    uiflow
    5
    2
    0 Votes
    5 Posts
    10k Views
    A
    Hi Dragon. Picking up this thread because I ran into the same problem. Caused by an empty value when out of sync with the sender in a P2P network transmission scheme (not ESP related but similar). Resulting as "None" for a value that should be converted into an integer used in an if/else process. I solved this by putting the if/else in a try/except statement and settting the except(ion) to a failsafe value until sync. [image: screenshot-flow-m5stack-com-2021-03-02-21-27-11.png]
  • How to control the speed of 180 degree steering gear in uiflow

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Problems with READING serial data thermal printer

    1
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • How to power M5Core2 from module?

    6
    0 Votes
    6 Posts
    12k Views
    felmueF
    Hello @Elektron good find, thank you for sharing. It is interesting that in your case the 10k pull-down resistor already in place on N_VBUSEN wasn't strong enough (with GPIO0 set to float) and you had to configure GPIO0 to pull that line low actively. Makes me wonder if something has changed electrically inside (newer) M5Core2? Happy Stacking! Felix
  • M5Paper Multiple screen layouts

    1
    1 Votes
    1 Posts
    5k Views
    No one has replied
  • UIFlow for M5Paper

    16
    1 Votes
    16 Posts
    29k Views
    ajb2k3A
    oserror 118 is an issue with Micropython. from what i can tell, its an issue baffling the main MP devs.
  • Error 426 when making GET request

    3
    0 Votes
    3 Posts
    3k Views
    E
    Thanks for the reply. You’re right that it’s the server response. In urequests, HTTP/1.0 is hard coded which is why the server returns that error. The API calls haven’t changed, I can make the same requests without issue via other REST clients or using the standard Python requests module. The issue is with the way only HTTP/1.0 is supported. What I’m trying to understand is if there is a way to make a request using HTTP/1.1 or above so I can avoid this? I’ve tried just changing it to 1.1 in the urequests module but sadly it doesn’t appear to be that simple!
  • Console Log with UIFlow

    2
    0 Votes
    2 Posts
    4k Views
    ajb2k3A
    If you wan't console feedback, UIFlow runs on micropython ( I am in the process of logging this) and so using Thonny is what I would advise as the code can be copied from UIFlows python window and pasted into thonny before saving to the device.
  • Check SD Card Status

    4
    0 Votes
    4 Posts
    8k Views
    felmueF
    Hello @SE thank you for sharing. The answer is not really surprising though - the required SDCard detect pin is not connected at all according to the schematics of M5Stack (Fire, Gray, etc.) and M5Core2. Interestingly it is connected in M5Paper, so SDCard detection should be possible there. But before you get your hopes up - SDCard support is not available yet in the UIFlow alpha version for M5Paper. Thanks Felix
  • UIFlow Github project?

    6
    0 Votes
    6 Posts
    13k Views
    B
    @world101 survey filled
  • HEX RGB LED Board Support in V 1.7.X

    3
    0 Votes
    3 Posts
    4k Views
    K
    Thank you! I started to click on that, but I wasn’t sure. Thanks!
  • Send AT Command va UIFlow

    16
    0 Votes
    16 Posts
    32k Views
    T
    @world101 Uhh, sorry. Here the english version... [image: 1612533606629-bildschirmfoto-2021-02-05-um-14.59.10-resized.png]
  • How to use the RGB LEDs of FACE II ?

    5
    1
    0 Votes
    5 Posts
    7k Views
    ArnoA
    I finally found the problem ... putting the screws on my FACE II it works. Probably a false contact
  • Rel. 1.7.0 COM.LTE network configuration

    4
    0 Votes
    4 Posts
    8k Views
    T
    Thanks, indeed the root cause was an old version of M5Burner, which I did not realized there was a newer one. Once updated, then the configuration panel showed also the APN settings and the UIFlow firmware booted successfully with the LTE connectivity
  • ESPNow UIFlow - communication stopps after 10 messages

    5
    2
    0 Votes
    5 Posts
    9k Views
    R
    The set.pmk function is used to "encrypt" data transmissions, you set the same key in the transmitter and receiver. I have not had the opportunity or need to test if it works. You can find a library for arduino esp-now on the internet. Practically the functions have the same or similar names as those in python. I think the easiest way would be to send from the transmitter all values separated by commas as text and receive them the same way. in uiflow or in python using split function which will make you a list with separated values Lists -> make list from text with delimiter. As a delimiter you set your separator character e.g. "," Then you read each value with Lists -> in list ... get # item number Translated with www.DeepL.com/Translator (free version)
  • UIFlow does not load .m5 file, program crashes (Ubuntu18.04)

    2
    0 Votes
    2 Posts
    4k Views
    ZontexZ
    Hi, This is a bug we are aware of and trying to get it fixed ASAP. If you need to use UIFlow in ubuntu, id suggest to use flow.m5stack.com for now
  • How do I connet M5stack to UiFlow and send the data to Blynk??

    2
    1
    0 Votes
    2 Posts
    3k Views
    ZontexZ
    Hi, you could use uiflow web at flow.m5stack.com to see if it can solve your issue. :)
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    5 Views