🤖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
  • Interrupts?

    Moved
    4
    0 Votes
    4 Posts
    10k Views
    H
    flow.m5stack.com, buttonA, B, C has been implemented using interrupts, or try: from m5stack import m5button button = m5button.register(_BUTTON_PIN) [image: 1553909251570-074bc216-f4e2-4c8a-a9c3-b66a9e4d9064-image.png]
  • 0 Votes
    3 Posts
    7k Views
    T
    @ajb2k3 The app starts after reboot M5 Fire, but the code is triggered in the exception block and displays message "Got Error!".
  • UIFlow questions: modules, docs, restart

    3
    0 Votes
    3 Posts
    6k Views
    T
    Thank you very much for your reply!
  • QR Code and remote connectivity without internet connection

    3
    0 Votes
    3 Posts
    5k Views
    m5-docsM
    @hyperion We have developped the offline coding software just now. https://m5stack.com/download [image: 1553139010098-%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20190321112756-resized.png]
  • UIFlow Firmware Installer (Version 1.2.2)

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • UiFlow interface suggestions

    5
    0 Votes
    5 Posts
    14k Views
    J
    I have a few more suggestions. It would be great to be able to add comments in uiflow. Microbit has this option and it's very helpful. [image: 50056519-397f4200-0155-11e9-95dc-580ef81c7df6.gif] It would be great to be able to double click on the canvas and type, at which point a list of the common blocks with that typed letter would be listed and able to be selected for use. This would allow the user to more quickly access the blocks required and to stay in the flow - no pun intended. Here is an example in grasshopper. [image: 94c19e3f69bc5ba312a88f658e417193a8bf985f.jpg]
  • UI-Flow的版本升级说明在哪可以看到?

    Moved
    2
    0 Votes
    2 Posts
    4k Views
    m5-docsM
    @wobotyuan 我去问下攻城狮
  • uiflow USB mode

    2
    0 Votes
    2 Posts
    6k Views
    lukasmaximusL
    Thanks for notifying us, and apologies for the inconvenience
  • 有没有什么办法能显示中文utf-8的字符?

    Moved
    2
    0 Votes
    2 Posts
    5k Views
    m5-docsM
    uiflow 的UI界面还不支持中文显示的label
  • 在python代码编辑区,代码不能保存

    Moved
    6
    0 Votes
    6 Posts
    10k Views
    m5-docsM
    @wobotyuan 以后会有这个功能
  • UIFlow 1.2.0 Now available.

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @world101 Yeh I wish there was a release notes. A few bug fixes have been done and the colour sensor is now added.
  • Would you like to play a game?

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @watson huh?
  • BTC Base

    Moved
    2
    0 Votes
    2 Posts
    6k Views
    m5-docsM
    @gadjet Sorry, UIFlow does not support the DHT12 which's built in BTC.
  • MQTT UIFlow problems

    Moved
    19
    0 Votes
    19 Posts
    41k Views
    world101W
    @the_stacker said in MQTT UIFlow problems: Thanks! That worked. Just out of curiosity: What's the difference between the two? Run is just for quick testing of your program. It is erased on a reboot. Download will add the program to the flash storage on the device so you can access it from the APP.LIST menu (middle button when the M5stack is booting up - inbeteeen upload and setup).
  • Interesting image generated in UIFlow

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @lukasmaximus said in Interesting image generated in UIFlow: pictures or it didn't happen :p Pictures are there!
  • MQTT working ....mostly

    Moved
    1
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • Problems with the Labels

    Moved
    16
    0 Votes
    16 Posts
    32k Views
    G
    @world101 It's in the "Graphic" group ![LCD.Print]([image: LCDprint.jpg?dl=1])
  • Where is firmware 1.1.2?

    Moved
    4
    0 Votes
    4 Posts
    10k Views
    world101W
    make sure you refresh the page a few times or clear your browser cache/cookies. it was there when I updated my firmware this morning (about 5 hours ago). i'm using v1.1.2 now.
  • M5Stack UIFlow Reboots in Setup [Fixed]

    Moved
    6
    0 Votes
    6 Posts
    12k Views
    ajb2k3A
    Nice Work.
  • UIFlow : connect with multiple AP's

    Moved
    3
    0 Votes
    3 Posts
    8k Views
    lukasmaximusL
    @kurthofman Whenever you boot up the device and select setup > change wifi connect and setup a new wifi connection it will be added to a list on the same page as the change wifi connect menu