🤖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!
  • 211 Topics
    789 Posts
    robskiR
    @GiovanniCaenazzo disconnect M5Dial press and hold boot button at the back ofM5Dial - in the middle of Stamp Controller - it is very gentle switch connect M5Dial to USB M5Burner should detect com port in boot mode
  • 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
  • Code download does not properly work for UI flow

    uiflow
    3
    0 Votes
    3 Posts
    8k Views
    S
    @heybin It works now!! Thank you so much
  • multiline label

    3
    0 Votes
    3 Posts
    6k Views
    K
    Hello Lucas, your temporarely solution works for me. Sorry for the typo: '/r/n' should be '\r\n'. Thanks.
  • UIFlow can't download code in m5stick-c recently.

    3
    0 Votes
    3 Posts
    4k Views
    lukasmaximusL
    Hi @lsy51739488 I just tested Stick C on both beta and 1.3.2 Uiflow with no connection issues. I was using firmware 1.3.5 firmware but older firmwares should also work fine. Are you still having issues?
  • M5Stack FIRE can't maintain connection in UIFlow

    6
    0 Votes
    6 Posts
    10k Views
    ajb2k3A
    @viernesmatheus said in M5Stack FIRE can't maintain connection in UIFlow: Hi. I have the same problem. My M5Stick only connects to UIFlow after a click the option Connect for several times. AQ1: 1.3.2 AQ2: same Aq3: OS AQ4: Chrome Aq5: Private connection at my home aq6: no aq7: the key and the globe is green. Thanks looks like the server at fault, should be working within 24 hours based on the programmers previous work.
  • I can't connected UIFlow today in v1.3.5

    5
    0 Votes
    5 Posts
    7k Views
    T
    I see no prob using offile version of UIFlow
  • UIFlow source code for M5StickC?

    3
    0 Votes
    3 Posts
    9k Views
    W
    @heybin Thanks. Is there a StickC branch for UIFLow_Code as well? I looked at https://github.com/m5stack/UIFlow-Code/blob/master/i2c_bus.py and PORTA is (21, 22) for M5Stack, not (32, 33) for M5StickC.
  • UIFlow USB Mode Questions

    5
    0 Votes
    5 Posts
    12k Views
    W
    @ajb2k3 said in UIFlow USB Mode Questions: @ws1088 said in UIFlow USB Mode Questions: @lukasmaximus said in UIFlow USB Mode Questions: The Api key is for connecting your stick c to the online version of uiflow (flow.m5stack.com) in the settings menu you can enter your apikey and switch from m5stack unit to stick c unit The interesting thing is in USB mode you still get an apikey. I tried entering that key in the online version of UIFlow and it is not working... It wont work because in USB mode the M5Stack has not connected over the wifi and so the online UIFlow cannot find it. This is a bug or a feature of the upcoming WebUSB function coming soon. Thanks, lets hope it is a feature for the online version of UIFlow instead of a bug :)
  • P2P Message via External API?

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • USB module not listed in uiflow

    2
    0 Votes
    2 Posts
    6k Views
    L
    Hi, Sorry,It's not available on uiflow yet.
  • Rotate UI object

    5
    0 Votes
    5 Posts
    7k Views
    lukasmaximusL
    @brett do you want to rotate the whole display or simply some of the graphic elements? As @ajb2k3 stated the rotation option is available for the text label, but elements such as the rectangle or triangle graphic elements are not rotatable due to the module they are based on not supporting this feature.
  • UIFlow Firmware, ToF unit and ampy

    4
    0 Votes
    4 Posts
    9k Views
    lukasmaximusL
    The video @ajb2k3 was referring to is here https://www.youtube.com/watch?v=Y9pOWgsNgKk&t=73s hope it helps
  • LCDVOL ?

    8
    0 Votes
    8 Posts
    15k Views
    H
    lcdvol to control lcd voltage, must than 3V
  • M5Img documentation

    5
    0 Votes
    5 Posts
    8k Views
    lukasmaximusL
    Hey Kenny, just wondering why you would want to get the image width and height if you already prepared an image that fits within the screens confines, I would have thought you'd already know the size of your image. If you can give me a valid reason I can see if we can include those functions in the M5IMG library
  • Recommendation: Text Rotate Point

    2
    0 Votes
    2 Posts
    5k Views
    ajb2k3A
    @hetzer that would be great. In my scrolling and bouncing text demo's the same location 0,0 is also used for detecting the edge of the screen which is proving rather annoying.
  • uiflow v1.3.2 (stable) Bug on block "change i by 1"

    5
    0 Votes
    5 Posts
    10k Views
    lukasmaximusL
    Seems it's fixed now, the issues was that it didn't generate the code to import the numbers library "from numbers import Number"
  • Issues with blocks after update.

    3
    1
    0 Votes
    3 Posts
    6k Views
    H
    Had to reinstall chrome but worked fine in the end. Thanks for the help.
  • UiFlow - 1.3.1 beta - Core - wifisetup

    3
    0 Votes
    3 Posts
    6k Views
    I
    @ajb2k3 now that you mention it... both M5Flow web and UiFlow IDE are V 1.2.3 I'll try to revert to fw 1.2.3 and see how it goes
  • UI flow IMU issues

    Moved
    12
    0 Votes
    12 Posts
    22k Views
    H
    if only use mpu6050,i try fix yaw offset, but Failed .....
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    5k Views
    No one has replied