🤖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
  • MQTT

    Moved
    26
    0 Votes
    26 Posts
    113k Views
    ajb2k3A
    @dvd78 I think..... If you just power it on it should autoload the program.
  • How to use the Buzzer in M5Stick

    Moved m5stick buzzer
    2
    0 Votes
    2 Posts
    11k Views
    ajb2k3A
    @an-erd said in How to use the Buzzer in M5Stick: I tried to use the buzzer on M5Stick. In UIFlow I used Advanced > PIN > digital write pin 26 to 1, but you don't hear the buzzer. You can feel that M5Stick "tries" to do it. So what did I wrong? I expected to have a buffer as in a mobile phone to at least feel if vibrating or to hear a beep? You don't do that in UIflow, you use speaker.tone(1600, 200) or speaker.sing(220, 1) from m5stack import * from m5ui import * clear_bg(0x111111) speaker.tone(1600, 200) speaker.sing(220, 1) or the Speaker beep and play tone blocks in the blocky mode.
  • [Solved]uiflow new FW(v1.1.0) can't writting.

    Moved
    4
    0 Votes
    4 Posts
    10k Views
    world101W
    @heybin While you are at it, please update the entire zip file for the Mac version of the M5Burner. What is linked in flow.m5stack.com today only goes up to v1.0.1. I need v1.1.0 please. http://flow.m5stack.com/download/M5Burner_MacOS.zip
  • uiflow 1.1 mqtt

    Moved
    5
    0 Votes
    5 Posts
    11k Views
    ajb2k3A
    @watson Yes, I need to understand MQTT to work out part of my book but I'm just not understanding it.
  • Neopixel Experiments in uiflow

    Moved
    9
    0 Votes
    9 Posts
    13k Views
    ajb2k3A
    @watson said in Neopixel Experiments in uiflow: @ajb2k3 How about your neopixel breathing project? That's the base layer code but it only lights the Pixels in a predefined sequence. Need to find a way to randomize the sequence instead of hard-coding the pattern.
  • UIFlow : standalone

    Moved
    2
    0 Votes
    2 Posts
    6k Views
    H
    sorry, currently it is not possible because of security issues.
  • M5Stick's mini and UIFlow

    Moved
    10
    0 Votes
    10 Posts
    19k Views
    H
    hello, lcd.print() is not support in m5stick uiflow
  • python back to blocks not working

    Moved
    5
    0 Votes
    5 Posts
    13k Views
    m5-docsM
    @360fashion Hello, it's normal. UIFlow likes Blockly(designed by Google) and MakeCode(designed by MicroBit and Microsoft) You need to save it
  • What does this mean?

    Moved
    3
    0 Votes
    3 Posts
    8k Views
    H
    hello,if wifi connect fail will appear thoese msg, Btn retry mean you can press btn to retry connect wifi, long press btn mean press long time(2 sec) can go to wifi setup, change wifi connect