🤖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
  • multithreading in uiflow

    2
    0 Votes
    2 Posts
    6k Views
    world101W
    @jpilarski I agree this would be a good feature to have on uiFlow. Specifically, which block are you referring to on Adafruit MakeCode? Is it the "run in parallel" block? [image: 1580328768960-screen-shot-2020-01-29-at-3.11.52-pm-resized.png] However, from a MicroPython perspective, multithreading doesn't seem to be complete yet, according to this link. "This module is highly experimental and its API is not yet fully settled and not yet described in this documentation."
  • "Ghost" image and text labels when hiding them in UIFlow

    3
    0 Votes
    3 Posts
    5k Views
    L
    @world101 That was an easy enough fix! Thanks!
  • UIFlow crash

    2
    1 Votes
    2 Posts
    4k Views
    lukasmaximusL
    That is unusual, which version of uiflow are you using? could you create an issue on the uiflow bug tracking github page https://github.com/m5stack/UiFlow-Bug-Report
  • Atom Matrix

    8
    0 Votes
    8 Posts
    12k Views
    m5stackM
    @allan_xu you can choice "M5StickC or ESP32 pico" board. and this is the lib and example :https://github.com/m5stack/M5Atom
  • New to M5Stack... A few questions about UIFlow

    4
    0 Votes
    4 Posts
    5k Views
    ajb2k3A
    @meatpuppet the problem is that while I am working on documents, I haven’t had time too look into the MQTT issues to see what’s happening (I’m not a coder so I can’t fix things) but when I have time I look into issues and give feedback to support. I see a lot of the same MQTT issues popping up and wish I could help. The 1.4.4 update caused a lot of issues, and so finding time to use and break things is something that needs a lot to f help and support from users. I am wondering if the current issues are due to connections between the device and the server.
  • Get contents of a webpage in UIFlow

    3
    0 Votes
    3 Posts
    6k Views
    E
    I get this error in operation after a while using urequest in micropython. My impression is that it occurs less frequent when having shorter time intervals between the calls. I'm using uiflow 1.4.3 for M5Stack and the upload works but the program never starts, I have to use RUN.
  • Infrared on stickc and Fire

    3
    0 Votes
    3 Posts
    5k Views
    lukasmaximusL
    I think the IR unit sample code was only intended to work between two M5stack ir devices. As frequencies range considerably for each device and each command e.g. play, pause on a media player, it's impossible to have an example IR code that works for all devices. I'm still unfamiliar with the commands of the IR module, as it is not documented yet, but I suggest playing around with the timer and peripheral functions. If you are not sure what you are doing you could try some of the arduino ir code as it seems better documented. perhaps this example could get you started https://www.hackster.io/alessandro-polselli/turn-m5stickc-into-universal-ir-remote-home-automation-d3ec0d
  • External libraries and I2C via UIFLOW

    7
    0 Votes
    7 Posts
    18k Views
    W
    @robinkam Could you post the micropython code for it? That would be great, because I can't get it to work.
  • Portuguese language support

    3
    0 Votes
    3 Posts
    6k Views
    ajb2k3A
    I'm slowly creating a book for UIFlow here https://github.com/Ajb2k3/UIFlowHandbook so any feedback is appreciated. BTW if you have Facebook you can see updates on the M5Stack facebook group.
  • Uiflow and loramodule

    2
    0 Votes
    2 Posts
    5k Views
    m5stackM
    LoRa and LoRaWAN is difference. using LoRa module in UIFlow can be difficult
  • How to Sim800 Received SMS and forward to database

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Does UIFlow have APIs/Blocks to support BLE?

    3
    0 Votes
    3 Posts
    4k Views
    K
    Thanks for the reply.
  • m5Stack Fire & GPS UIflow > sintax error Why?

    12
    4
    0 Votes
    12 Posts
    23k Views
    A
    [image: 1576231108754-gps.jpg]
  • 關於使用M5Stack core連接8servo Hat的問題

    3
    0 Votes
    3 Posts
    7k Views
    C
    了解,是有人說可以,讓我在這兒發問題,然後他就會給我一個範例!
  • M5Bala library and firmware UIFlow 1.4.2

    2
    0 Votes
    2 Posts
    3k Views
    ajb2k3A
    Bala and the Balamotor are both available in UIFlow 1.4.2
  • M5Stick c LCD turns completely off after M5Burner flash

    3
    0 Votes
    3 Posts
    4k Views
    ajb2k3A
    @lex 1, have you downloaded the firmware into the M5Burner application first? 2, Have you erased the old firmware? 3, Have you made sure that device is set to StickC in the burner program before clicking burn, 4, have you made sure that the burn is complete and that "Complete, staying in boot loader" is shown at the bottom of the screen?
  • Com port for M5Stick-C on Windows unable to be detected

    3
    0 Votes
    3 Posts
    6k Views
    ajb2k3A
    @sirfonzie 1, try turning the USB lead upside down when plugging into the M5StickC 2, Try a different lead. 3, try a different computer (just to test) 4, follow the removal and install procedure that I have posted in the forums exactly as I have written without skipping steps. The driver is very fussy and windows is also very fussy when installing and initial configuring the M5StickC and driver.
  • 使用rfid模塊的問題

    2
    0 Votes
    2 Posts
    5k Views
    lukasmaximusL
    你用了arduino还是micropython编程它?
  • 0 Votes
    8 Posts
    19k Views
    lukasmaximusL
    heres another location where you can get the latest firmware https://github.com/EeeeBin/UIFlow-Firmware/tree/beta
  • About Hat 8servos

    11
    0 Votes
    11 Posts
    22k Views
    ajb2k3A
    Ah, that is worth Knowing thanks. I haven't got one yet so didn't know that they needed a "Initial Position" set up. Thank you for working this out.