🤖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
  • Blocky ( emolator)

    2
    0 Votes
    2 Posts
    1k Views
    kurikoK
    @krumme2990 You mean Emulator? No there is not.
  • Download shows 'Progress' but nothing happens

    12
    1 Votes
    12 Posts
    7k Views
    A
    @robski Thanks, I figured it out.
  • controlling relay HELP!!!!!

    5
    0 Votes
    5 Posts
    3k Views
    S
    @felmue Hello, I'm going to tell you everything I know and have tried so far. I'm experiencing an issue with my M5 Hard devices. A few months ago, I purchased a couple of M5 Hard units for an MQTT data transmission project. I developed it in UIFlow 2, and everything worked perfectly. Recently, I bought more M5 Hard devices to expand the project, but now I’m facing a problem: when I install the firmware and try to connect them to WiFi, they won’t connect. I have tried the following without success: Reinstalling the USB drivers on my computer. Resetting the device to factory settings. Reinstalling the firmware. Trying different WiFi networks. Temporarily disabling the firewall and antivirus. Using different firmware versions. Checking the router configuration and connection parameters. Despite all these attempts, I still cannot connect them to WiFi. I’m getting the following error: arduino Copiar Editar E (328401) wifi: sta is connecting, return error Traceback (most recent call last): File "<stdin>", line 19, in <module> File "<stdin>", line 12, in setup OSError: Wifi Internal Error Additionally, I’m also getting this error: nginx Copiar Editar E (328338) i2c: i2c driver install error I don’t believe this is a network issue (firewall, antivirus, etc.) because, as I mentioned earlier, I have successfully programmed and connected other devices without any issues. I would really appreciate any suggestions or help.
  • Variable Corruption

    1
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Assistance Needed: Enabling Microphone in UIFlow for M5Stack Core2

    3
    0 Votes
    3 Posts
    2k Views
    kurikoK
    @laneishere1655 @Jdo300 UiFlow have no and will no support for microphone. Please transfer to UiFlow2
  • Help needed: Reading a nested key value from a JSON.

    2
    2
    0 Votes
    2 Posts
    1k Views
    M
    Here is how I solved this: [image: 1736676167190-solved.png]
  • UiFlow 2.0 AirQ support, Custom Code will not work...

    2
    0 Votes
    2 Posts
    2k Views
    ajb2k3A
    @ViperNZ Take it back to the basics of just a label, test and then add each block untill the error happens and then post the error message from the console.
  • UIFlow 2 bugs?

    5
    0 Votes
    5 Posts
    5k Views
    A
    @ajb2k3 That all makes sense to me. Sorry for the confusion, I'm trying to use either the mechanical limit switch OR the ir photogate as a limit switch. Not trying to use both at the same time. But I was unable to use either module using the corresponding UIFlow module integration. I'll post an example next week which hasn't worked for me so far. Yea, I originally had it in port A but moved it over after confirming there wasn't a negative impact as it's a bit cleaner with both plugs on the same side of the device. If you said there was an electrical difference that could be causing the non-zero reset bug I could try port A again. Any ideas there? Should I be using a different reset / get function? How can I debug this issue better? Seems pretty clear cut when I'm setting the rotary_value to 0 but when I get the rotary value, it's not 0. It resets to the initial value, which is often not 0. Today I recall three reboots which all had different reset values, roughly 636, -1035, -1. -1 was close enough and worked for me, but when I got the other values I just reset the board and basically got it to choose a new "0" value.
  • How do I concat strings in ui flow

    Moved
    12
    0 Votes
    12 Posts
    31k Views
    DINK74D
    @ajb2k3 Actually, “concat” is a widely recognized and valid term in programming that refers to combining two or more strings. There’s no need to be condescending to a fellow programmer by telling them to “use his language.” He's used English in understandable manner.
  • UI Flow won't download my program because an image doesn't exist?

    2
    0 Votes
    2 Posts
    2k Views
    kurikoK
    @PharkieB Are you able to share your .m5f2 file to there?
  • This topic is deleted!

    1
    2
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • The device type is unknown!

    4
    1
    0 Votes
    4 Posts
    2k Views
    kurikoK
    @Maxxxii Contact support@m5stack.com for support
  • How to upload multiple python scripts into "apps"

    2
    0 Votes
    2 Posts
    1k Views
    kurikoK
    @user7262094760 the web terminal in UiFlow2 dosen't work for you? [image: 1735002898373-f6b545c4-db27-4056-885a-fa0d9286ab0c-qq_1735002875399.png]
  • How to remove Labels and Touch Buttons?

    uiflow
    3
    2
    0 Votes
    3 Posts
    3k Views
    P
    To remove labels and touch buttons, access the interface design or software settings. Locate the labels and buttons section, and delete or disable them. Save changes. Refer to user manuals or guides for specific instructions tailored to your device or platform.
  • UIFLOW version 1 compared to version 2

    2
    1 Votes
    2 Posts
    2k Views
    ajb2k3A
    @hillsh_vi The problem is that UIFlow2 was designed for the newer processors consisting primary of the S3 and C3 groups because of a fundamental change to the way Micropython operates on them including the boot loader. You may have noticed that the older gen devices could be programmed without actually touching the cores where as the new gen have to be put into boot loader mode for firmware writing.
  • Can't read ENV IV using UIFlow2

    4
    1
    0 Votes
    4 Posts
    2k Views
    kurikoK
    @RBOUMAN58 What version of UiFlow firmware do you have on StickC? As far as I know, the latest version of the firmware sometimes buggy, and the problem of not being able to scan I2C devices has occurred before. Maybe rollback to the old version will help.
  • Variabel with number not working anymore

    4
    0 Votes
    4 Posts
    2k Views
    kurikoK
    @Remco fixed!
  • connect nrf24 module to m5stickC plus and use with uiflow

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • OSC HELP!!!

    4
    0 Votes
    4 Posts
    5k Views
    kurikoK
    @chihimchik you'd better post this to topic feature wishlist
  • Does uiFLow allows http post with password?

    2
    1
    0 Votes
    2 Posts
    2k Views
    kurikoK
    @digiajay UiFlow 2.0 currently have no authentic support for http