🤖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
  • Monitor serial output in Uiflow

    13
    0 Votes
    13 Posts
    17k Views
    ajb2k3A
    In Uiflow/micropython you use the "print" command to send data to the serial console.
  • 0 Votes
    2 Posts
    2k Views
    ajb2k3A
    That is because the PIR sensor is a port B device (black connection and by default is assigned to PortB, however, when you select the Unit In Uiflow2, you have the option to change the port.
  • Core2 UiFlow

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Core2 resets when recoding from build in microphone

    8
    1
    3 Votes
    8 Posts
    9k Views
    K
    I just tried to record a simple .wav file via the built in microphone on my core2 with the M5Go Bottom2 using the blocky 'record to file' block. I am using UI flow 1.12.2 on my core2 and yes it does record and I can play the .wav file back but even at max volume of 6 the sound is very faint.
  • Compilation error for a project using SD card

    5
    0 Votes
    5 Posts
    4k Views
    C
    Fully agree
  • No longer able to pair Core devices with UI Flow

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Difficulties with Pa HUB

    4
    0 Votes
    4 Posts
    3k Views
    C
    I am surprised that none of the 109 viewers proposed the proper way of doing. Or maybe the PaHub is not their concern ? Anyway and for future beginners who could face the issue. 1)There is no need to add the PaHUB as a component as with the other I2C captor 2) These captors must then be declared as PaHUB and not as port A
  • Removing the UIFLOW menue on Tough

    9
    0 Votes
    9 Posts
    9k Views
    P
    @insaneLX Yeah, it has been fixed. please send a video on bug issues
  • how to set an image as background in uiFlow2.0:

    4
    0 Votes
    4 Posts
    4k Views
    S
    @ajb2k3 I tried this lcd.clear() # Draw the image as the background lcd.image(0, 0, 'res/img/icons8-bluetooth-48.png') I tried this but I got this error un the screen Traceback(most recent call last):
  • coreInk can but uiflow doesnt

    3
    0 Votes
    3 Posts
    3k Views
    ajb2k3A
    @ebksuper You use the Execute block for external API's or premed Micropython libs.
  • round to one decimal in UI flow

    5
    0 Votes
    5 Posts
    5k Views
    C
    @riddsprojects Thanks. Glad to have learned something, works well indeed
  • Load images on M5Paper in UIFlow

    12
    0 Votes
    12 Posts
    18k Views
    M
    I just got my M5Paper today, so this is very timely info for me, thanks!
  • How to interrupt a program saved on M5 Stack Core 2 ?

    3
    0 Votes
    3 Posts
    3k Views
    C
    Thanks for the answer. So what I thought to be a last chance solution becomes the rule. In the videos and tutorials I have been through so far, this question has never been raised. One is told how to download a program to the device starting from scratch but never how to download program number 2..
  • M5 stack core 2 is disconnecting

    11
    0 Votes
    11 Posts
    8k Views
    M
    @ajb2k3 said in M5 stack core 2 is disconnecting: America is trying to block Chinese things at the moment. :/ [image: png-transparent-face-emoji-eye-roll-whatever-eyes-thumbnail.png]
  • Modbus Master crashes and missing documentation

    6
    0 Votes
    6 Posts
    6k Views
    P
    Hi, @insaneLX [image: 1688369012974-5545b634-1765-460d-a5c1-c3d1ae46fd74-image.png] 0xff00(ON or 1) and 0x00(OFF or 0)
  • RGB Leds Crossfade

    2
    0 Votes
    2 Posts
    3k Views
    H
    This is not an Uiflow specific solution. Try as following: Decide how many steps you want from start color to end color. e.g. 10 steps find the step size from start to end color e.g. you want from value 100 to 200 (difference / steps) = step size 10. loop for the number of steps and increase/decrease the value with the calculated step size.
  • Program update remotely

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How do you send an HTTP GET or POST in UI Flow

    4
    0 Votes
    4 Posts
    9k Views
    X
    @ebksuper Hi bro, I'm having the same problem. That's why I am here and noticed that you are having the same problem. After a few hours of trying, I finally got the data I wanted. I would like to share my solution here. Maybe it will help you, or not, either way, it's worth a try. [image: 1f4748de783ec.png]
  • Core 2 MQQT fails to publish on topic

    5
    0 Votes
    5 Posts
    4k Views
    C
    @ajb2k3 started with this https://youtu.be/5RozKI-3i4Q.. My project is to monitor power , security , humidity , temperature and water leaks at a remote business premises . Thats part 1 Part 2 is to push actions over MQQT based on reports . Will be using a Stick C plus for sensing and Core 2 at home plus Andoid app for real time alert.
  • How to use the ExpPort For Core2 module

    4
    0 Votes
    4 Posts
    4k Views
    ajb2k3A
    Ports B and C are not controlled by the board, they are connected directly to the bus and handled directly by the core. As to D and E which are handled by the base. Ports B and See only. become available when you select units that require ports B and C