I accidentally deleted the wav file in the res/ folder on the Core2 flash (don't remember the exact name of the file). But you could just rename it. Now the startup sound is gone. So this is a qick'n'dirty fix if you don't want this sound.
Best posts made by ondrej1024
-
RE: [Core2] How to disable speaker tone during booting / power-up?
Latest posts made by ondrej1024
-
RE: UI widgets missing in UIFlow 2
I added everything from the hardware and software menu. But I still cannot find the widgets I listed above. Where are they?
-
RE: UI widgets missing in UIFlow 2
Is this a question difficult to answer?
It shouldn't be for the M5Stack devs. So please, it would be nice if you could spare these 2 mins. Thanks -
UI widgets missing in UIFlow 2
There were some very useful UI widgets in UIFlow 1 such as:
- Button
- Switch
- Slider
- Bar
- Message Box
What happened to these in UIFlow 2? Any chance to use them (or something equivalent)?
-
Working with multiple screens on Core2 and UIFlow 2.x firmware
With the UIFlow 1.x Micropython firmware it was possible to work with multiple screens using the
M5Screen
class.How can this be done with the UIFlow 2.x firmware? I see there is a
Display
class in theM5
module and some functions which look interesting:Displays() addDisplay() getDisplay() getDisplayIndex() getDisplayCount() setPrimaryDisplay()
I couldn't find the documentation for these functions. Are there any docs explaining how to use them or some example code?
-
How to change background color of M5Msgbox
The documentation of the M5 LVGL API does not state a method for specifying the background color of a M5Msgbox.
However, I found that a M5Msgbox object has a style property which has a set_bg_color method . So I tried this:myMsgboxObj.style.set_bg_color(lvgl.STATE.DEFAULT, lvgl.color_hex(0x888888))
This does not produce an error but meither does it change the backgound color of the box.
Any ideas?
-
RE: ntptime.getTimestamp returns incorrect timestamp.
Looks like this ntptime timestamp is relative to 01/01/2000, and not to 01/01/1970 like the Epoch Unix timestamp.
-
RE: How to interrupt urequests if it hangs
Yes, watchdog timer could be an idea. The same can be done with a normal timer and calling machine.reset() when it fires.
However I was wondering if there was a more graceful way of handling this, e.g. interrupting just the hanging urequests.request() method and then continuing with the program without rebooting the whole device.
-
How to interrupt urequests if it hangs
The urequests.request() method does not implement e timeout parameter (like its big brother). So if there is not response to a certain request, the method will hang forever.
To work around this I am starting a timer just before the urequests.request() call and stop it directly after it. So if the method does not return within a define time, the timer will fire and I can do something.
So the question is, when the timer fires, which means urequests.request() is stuck, what can I do to recover? One thing could be to reset the device. But is there a more soft way to do this and continue with the application?
Thanks, Ondrej
-
RE: How to distribute Micropython application as binary flash image ?
Thanks a lot. This seems exactly what I was looking for. Command line is not a problem. Will try it.
-
RE: [Core2] How to disable speaker tone during booting / power-up?
I accidentally deleted the wav file in the res/ folder on the Core2 flash (don't remember the exact name of the file). But you could just rename it. Now the startup sound is gone. So this is a qick'n'dirty fix if you don't want this sound.