🤖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
  • How to change MPU6886 sensor range of M5 StickC by Arduino

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Device hardware - revision

    2
    0 Votes
    2 Posts
    3k Views
    ajb2k3A
    @garfield On the main pcb you will find the date printed. this will tell you the batch and sometimes the revision.
  • How to make RTC clock with NTP

    10
    0 Votes
    10 Posts
    27k Views
    D
    Thx @ajb2k3 - only that example does not appear to be applicable to the M5StickC.
  • UIFlow and deepsleep

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • More than one of the same units on an I2C-Bus?

    5
    0 Votes
    5 Posts
    9k Views
    felmueF
    Hello @luex may I suggest you start small? (my apologies if you already have done that.) setup the build environment (Arduino, PlatformIO, UIFlow, ...) get familiar with your M5Core device build, download and run some simple examples (blinking an LED, put some text on screen, ...) now try to setup one watering/soil moisture unit using the provided example only if that all works try to setup multiple of them BTW: the watering/soil moisture unit does not use I2C to communicate therefore the discussion in this thread is probably not really helpful for your situation. Good luck! Felix
  • "\n" becomes "\\n"

    5
    0 Votes
    5 Posts
    9k Views
    P
    @robalstona Tnx for the tipp. I'll try it.
  • (Solved)M5StickC+ToF:I2C bus error (19)

    4
    0 Votes
    4 Posts
    6k Views
    felmueF
    Hello @Koms you are welcome. Thank you for reporting back. I am glad to hear you got it working. Cheers Felix
  • Pa.HUB in m5atom

    4
    1
    0 Votes
    4 Posts
    8k Views
    P
    @iamliubo Thank you :) I just noticed that it is already implemented. Thank you very much for that. It helps me a lot.
  • [Mac OS] Copy/Paste

    2
    0 Votes
    2 Posts
    4k Views
    M
    I found a workaround. Use the web version of UIFlow instead. Copy/Paste works great.
  • Blynk in UIFlow

    18
    0 Votes
    18 Posts
    34k Views
    A
    @ajb2k3 said in Blynk in UIFlow: I came across a video last night (lost link) that shows that it should be possible to run ESPnow and WIFI at the same time on an esp32. apparently all you need to do is to set ESPNOW to work on a different channel to the WIFI. @ajb2k3 Good hint. I will check my router to prevent using the channel I selected as common for the devices.
  • Dealing with background color changes ...

    6
    0 Votes
    6 Posts
    10k Views
    M
    BTW, I created a new topic "randomness" with more detail on the issues I'm seeing. It goes beyond background color refresh...
  • Run mode is working, but not work uploaded program.

    2
    0 Votes
    2 Posts
    4k Views
    IAMLIUBOI
    Hi @zoroaster , Sorry to hear this, can you provide more detail or the .m5f file for us to look at?
  • need help converting text to int (CORE2)

    5
    2
    0 Votes
    5 Posts
    12k Views
    T
    There's execute code block also
  • Separate firmware from M5burner

    10
    0 Votes
    10 Posts
    19k Views
    B
    @scottknight Hey hi, I just changed my chromebook to an Intel based one. But the ARM one did not even run M5Burner. So yes... if your CHromebook is Intel processor based, you can run m5burner. Thanks for the listing of directories for using the firmware directly with esptool
  • 0 Votes
    3 Posts
    8k Views
    world101W
    @héctord It's actually the opposite as you describe. A higher layer takes visible priority. So when displaying text or shapes on the screen, an object on layer 8 is "on top of" (or covers over) an object on layer 3, and there is no transparency (see through). The tricky part is once you move your rectangle to highlight the next label, you have to redraw (or show) the changed areas of the screen. So the layers and screen management take some getting used to within uiFlow. Here is an example flow of what you are looking to achieve. Layers 0-3: reserved by uiFlow by default Layer 4: rectangle Layer 5: Label 1 Layer 6: Label 2 Layer 7: Label 3 Layer 8: Label 4 [image: 1615728311756-example-resized.png] Note: In the M5StickC UI simulator on the left, you could manually change Labels 1 through 4 to all be on layer 5 and it will still work, since those labels do not overlap.
  • can UIFlow export code to arduino code

    2
    0 Votes
    2 Posts
    5k Views
    B
    Hey! hi, No. UIFLOW works with Micropython. In fact you are better off doing it from the beginning on Arduino, that is because the libraries are ready available there. And the code runs pretty fast because you dont load all UIFLOW api. Think of UIFLOW as a platform to make a proof of concept pretty fast, or to test something on the fly. UIFLOW is pretty cool for what it is, but has lots of constrains and not everything is implemented as of now. Also the cloud stuff is pretty mixed up.
  • ENV II Unit Support for UI Flow (device M5StickC)

    6
    0 Votes
    6 Posts
    12k Views
    ajb2k3A
    Under the picture of the StickC in UIFLow is Unit/HAT and a + sign. Click on HAT then click + and select ENVII to add the EnvII to the workflow. UIflow then automatically imports the needed libraries required to use it so all you need to do is add the blocks that appear in HAT>ENVII menu.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    51 Views
    No one has replied
  • Enable "back button" or "cancel button" in UIFlow main menu on device

    4
    0 Votes
    4 Posts
    7k Views
    P
    I'm not sure if this helps, but when you are in M5Burner and you flash your Core2, next to the "Burn" button there is a "Configuration" button. In the popup, if you change the "Start Mode", does that get you out of the UiFlow screen on the Core2?
  • Using the Set Bit Block

    3
    2
    0 Votes
    3 Posts
    5k Views
    U
    Thanks - elementary error on my part. Problem resolved. Allan