šŸ¤–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
  • 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.
  • How to use Remote + Switch?

    2
    1
    0 Votes
    2 Posts
    3k Views
    RIDDSprojectsR
    Hi, It's also my experience that it doesn't always work if you have multiple switches, input fields, buttons, etc. I see "Switch 4" with you, so I assume that there are multiple switches. The solution I used in one of the projects with multiple input fields is to apply custom variables. Then suddenly it works! Hopefully that will help you too. [image: 1660660398174-input_value-resized.jpg]
  • 'module' object has not attribute 'ENV3'

    2
    0 Votes
    2 Posts
    3k Views
    felmueF
    Hello @guymanuel which UIFlow firmware version is installed on your M5StickC? One possible cause I know for this error is a too old UIFlow firmware version running on your M5StickC. I can provoke this error when I load UIFlow firmware version 1.7.5 onto my M5StickC. Newer UIFlow firmware versions seem to be ok. Thanks Felix
  • TCP connection instead of a UDP connection

    1
    2 Votes
    1 Posts
    2k Views
    No one has replied