šŸ¤–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
  • 0 Votes
    6 Posts
    7k Views
    ajb2k3A
    @isamalatby Do you have a new device or second hand device?
  • 0 Votes
    5 Posts
    7k Views
    Marelli7M
    @ajb2k3 I learned that the browser does connect to the Core2 by WiFi and the IDE connects using USB.
  • Lost Serial number

    5
    0 Votes
    5 Posts
    5k Views
    D
    Thanks
  • UIFlow program on firmware

    3
    0 Votes
    3 Posts
    4k Views
    ajb2k3A
    @german-figueroa2000 What you did was to run the code on the core2 in test mode. You need to download the code to the core 2 from which it will be run on boot. There are some differences between running in test mode and running in app mode and the biggest is that in app mode you may need to add blocks to initialise wifi communications where as in test mode, the wifi is auto magically run for us.
  • need your advice for data transfer from a CORE2 to an ATOM display !

    3
    0 Votes
    3 Posts
    4k Views
    ArnoA
    Thanks Teastain I have the expansion module for CORE 2 I am looking for advice on the mode of communication to use to transfer from CORE2 to the ATOM Display, and how to transmit around 20 digital variables?
  • UHF RFID Unit. Lack of information

    5
    0 Votes
    5 Posts
    7k Views
    K
    I agree quite frustrating, when you follow the sample and get no results. Any pointers in the right direction would be fantastic.
  • Slow UART

    1
    2
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • How to calibrate M5 Bala2 with UIFlow?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • UIFlow web and fonts

    5
    0 Votes
    5 Posts
    8k Views
    ajb2k3A
    The problem is not just ā€œhot featuresā€ it’s hardware support and MP version upgrades. M5Stack are aware of issues with the current firmware as I keep annoying them about duplicates and bad libs
  • M5 Core Ink startup beep

    3
    0 Votes
    3 Posts
    3k Views
    A
    @felmue Thank you very much! Exactly what I need. Indeed, I was using the v2.5 stable version of the M5Burner, which doesn't have this option. I'm glad they added this option in the "next" version.
  • Modbus Slave

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Hide all UI Items not in Layer Number

    2
    0 Votes
    2 Posts
    4k Views
    AsmodevA
    bump
  • M5Station-485 - Get Battery Percentage - NameError

    4
    1
    1 Votes
    4 Posts
    6k Views
    felmueF
    Hi guys @democrazia : thank you, adding from easyIO import * solved the issue. Thank you! @ajb2k3 : you are correct, the 485 stock version doesn't have batteries. However I don't think M5Stack engineers are planning to separate the two versions in UIFlow as there is only one M5Station to select from in UIFlow. So yes, it is a bug - instead of the error we should get 0. Thanks Felix
  • USB Module - Read from Keyboard or Barcode Reader

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • GPS: calculate deviation between two course

    2
    0 Votes
    2 Posts
    2k Views
    ajb2k3A
    Try (str(str(setcourse))) Putting the str in a second time sometimes works as it would appear that the original str sometimes get ignored. Why, I don’t know but I’ve used this trick myself a few times now.
  • TypeError: 'str' object isn't callable

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • M5Station-485

    uiflow
    16
    1 Votes
    16 Posts
    21k Views
    ajb2k3A
    @kawabatapaper said in M5Station-485: @ajb2k3 I'm still learning and it will take some time before I can share it. We recycle paper from waste paper at our factory. I would like to manage production by atacching M5Stack to various machines and taking values with sensors. I introduced M5Stack and Stick a few months ago, and now I can stably obtain 4 current values, send them to the database from Node-red, and manage them with Excel. If the test of Station goes well, I want to use Station a lot. There are many machines in our factory and the future is long, so please give me some advice if I have any more questions. Thanks [image: 1661410085999-f9ce0ec0-5542-420d-8cb2-5f0afc8401de-image-resized.png] Cool thanks, I’m still waiting on mine as it was stuck at the airport in china
  • Problems with text merge on http request module

    2
    0 Votes
    2 Posts
    3k Views
    T
    Maybe this might help others: We kinda solved problem #1 after talking to a python guy :-P When you request values from http this MIGHT have some spaces included, even if you don't see them. "So we put truncate spaces from both ends" an all those variabels and that works! Don't think that this should be so hard to use - but anyhow - it works. So #2 stays open. How to reveive 2 variables via http request
  • Different Pages on M5Stack Core

    7
    0 Votes
    7 Posts
    10k Views
    R
    @RIDDSprojects Thank you so much for this example. That“s what I am looking for. It is not as comfortable as I expected, but it works. :)
  • Set Atom Matrix block duplication bug - color reverts to white

    2
    1
    0 Votes
    2 Posts
    4k Views
    RIDDSprojectsR
    Hello, It helps to select a different color first. Then you can still make copies. An annoying detour indeed.