🤖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
  • Can't get M5Core 2 to work on Mac

    2
    0 Votes
    2 Posts
    3k Views
    P
    Burned the Core2_Tools and then the UIFlow_Core2 again (have burned it a few times before). This time it displayed the App with the option for UIFlow and everything is working now. I do still get the Upload failed errors sometime, but it is installing the app on the device. /Chris
  • Senseair S8 LP CO2-Calibrate

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • CO2 Sensor Sensirion scd30

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Help with RTC block in UIFlow / Blocks

    4
    0 Votes
    4 Posts
    6k Views
    ajb2k3A
    Huh ? This shows it in the format you want [image: 1653495528753-screenshot-2022-05-25-at-17.18.00.png] [image: 1653495691899-img_4259-resized.jpg]
  • Newbie trying json

    1
    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • PNG and JPG formats: unsupported image type

    5
    0 Votes
    5 Posts
    7k Views
    ajb2k3A
    @csongor-varga Unfortunately transparency doesn't look to be implemented in MicroPython yet.
  • UIFlow with ZigBee M5?

    uiflow
    1
    1 Votes
    1 Posts
    4k Views
    No one has replied
  • HTTP GET query parameters

    5
    0 Votes
    5 Posts
    8k Views
    C
    @epollari Thanks a lot. Even though I am watching my own thread, I am not getting a notification on comments. Good that I checked :) Can I ask you to also check my next issue? So my web service returns a json like this: {"queryCost":1,"latitude":47.4997,"longitude":19.0551,"resolvedAddress":"Budapest, MagyarorszĂĄg","address":"Budapest","timezone":"Europe/Budapest","tzoffset":2.0,"days":[{"tempmax":26.0,"tempmin":10.0,"precipprob":0.0,"conditions":"Clear","icon":"clear-day"}]} [image: 1652649196263-5efdd892-0a56-4102-9a15-ab230a2c4b8c-image-resized.png] So far I am just trying to get the various pieces out of this json, but you can see above how you get an element from an array. And finally it works :)
  • Wrong App Launching

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • can't reconnect m5paper to uiflow because of loaded sketch?

    2
    0 Votes
    2 Posts
    3k Views
    ajb2k3A
    @belsonc oops sorry for causing issues. When you power on the ink or paper immediately push up on the navigation switch on the side! When I wrote that I didn’t think that new users would know how to bypass the program to get into the menu. Thanks for pointing out the mistake on my part!
  • switches from USB mode to app mode

    4
    0 Votes
    4 Posts
    7k Views
    W
    Also, if your sketch has any code that uses Wifi, your device will disconnect from UIflow. It will not reconnect when your sketch is finished. To work around this I keep the M5Burner open; when you click on "configure" it will reset the device via USB. Even then, your device will not connect right away, so go down to the lower left corner of the UIFlow window and clock on "Reconnect". "App Mode" and "Download" are most useful when you are done testing your code.
  • Can't connect Core2 from UiFLOW with chrom

    2
    0 Votes
    2 Posts
    2k Views
    ajb2k3A
    Check chromes settings as I don't have this set and don't have a problem.
  • How do I get the exception details in UIFlow?

    8
    0 Votes
    8 Posts
    12k Views
    ajb2k3A
    @dave17 said in How do I get the exception details in UIFlow?: @ajb2k3 Hi I tried to connect Thonny to my M5stack Core 2 but with no success, I when I set the port to esp32 and /dev/USB0 I get some serial port messages but the device is not recognized and I cannot program it with Thonny. Same with mu. Can you please help? What kind of messages? Have you set Thonny or mu to communicate correctly? Have you Hit CTRL+C to stop the running Micropython code in order to to get into REPL?
  • Micropython and C++

    3
    0 Votes
    3 Posts
    6k Views
    ajb2k3A
    No you cannot. Micropython's firmware includes an interpreter as well as having the MP libraries to run where as Arduino/C does not need the interpreter and runs on a lower level overwriting the firmware.
  • Has anyone gotten machine.lightsleep to work from UIflow?

    4
    0 Votes
    4 Posts
    5k Views
    W
    @wsanders I got the program to run with lightsleep, but only in "Internet Mode" and not "App Mode". Battery life was no different with lightsleep than with wait, about 2 hr. (Wait is probably is just a call to lightsleep, just in a more organized manner.) It appears that in 1.9.6 Wifi doesn't come back up after lightsleep, I seem to remember the above callback function worked in 1.9.5 even after lightsleep. Now it hangs. Back to square one. I think the best way is to have two separate programs, one to sync the watch to NTP, and one to run the clock with the time from the RTC (so I can still use the watch outside of my home wifi network.)
  • Several scripts on M5stack Core2

    1
    1 Votes
    1 Posts
    3k Views
    No one has replied
  • This topic is deleted!

    1
    1
    0 Votes
    1 Posts
    75 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    34 Views
    No one has replied
  • QOS in UiFlow

    2
    0 Votes
    2 Posts
    3k Views
    felmueF
    Hello @Javi no solution, I am afraid, but I can confirm the bug which cuts 2 chars. Thanks Felix
  • Antenna Rotor Control

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