Hi, the problem is, for me, that i need to write files to the sdCard like a datalogger. I think old lobo’s version do the job but not lv_micropython… @m5stack : official pure m5stack needed to use the core 2 functionalities OR hidden start menu version of uiflow.
Posts made by favnec5
-
RE: Pure Micro Python without Ui-Flow on my M5Stack core2
-
RE: Pure Micro Python without Ui-Flow on my M5Stack core2
@dhed
Hi, thank you for your firmware.
I try lot of things. There is a problem to use SDCard with display driver a the same SPI. SDCard is down :-/
Do you know this problem ? -
RE: Pure Micro Python without Ui-Flow on my M5Stack core2
@dhed
hi Dhed, is it possible for you to share the last bin pure lv_micropython firmware for M5CORE ?
it's been several days i 'm trying to compile it but i'm a win64 user... it's hard for me. -
RE: Turn OFF m5core programmatically in UIFlow?
@ganeyvim
Sorry Ganeyvim, I thought it was the same for all devices but... nop -
RE: Turn OFF m5core programmatically in UIFlow?
hello,
In fact, power.powerOff() work.
hardwares > power > powerOff (uiflow 1.8.1)best reguards
Thomas -
RE: UIFlow 1.8.1
Hello. Sorry but i don't understand. Wifi mode will display wifi ssid for wifi connection. The problem is that, in the app mode, "boot menu : false" in the M5Burner software don't hide the splash screen and the boot menu at core2 startup.
Thanks.
Thomas -
RE: [UiFlow] real "boot menu : false" mode
@felmue
A thousand and one thank you ! -
[UiFlow] real "boot menu : false" mode
Hello,
Could it be possible that the "boot menu: False" mode in uiFlow settings makes the boot menu hidden and launched faster?
It'is not working (tested on my Core2). It's a shame, it restricts the product for end uses.
Best regards
Thomas -
RE: [M5Core] empty UIFlow firmware
@danielvalat said in [M5Core] empty UIFlow firmware:
So cool ! and for M5Core2 please ;) i don't want to pass to another board just for a missing LCD driver :(
up!
-
RE: [M5Core] empty UIFlow firmware
@bricoms said in [M5Core] empty UIFlow firmware:
hello,
good idea,
could you share a part of code of what you are doing? -
RE: Core2 how to know the current battery level
@wa-berlin said in Core2 how to know the current battery level:
batPercentage = ( batVoltage < 3.2 ) ? 0 : ( batVoltage - 3.2 ) * 100;
micropython welcome :
batPercentage=0 if batVoltage<0 else round((batVoltage-3.2)*100) lcd.print(str(batPercentage)+"%",0,0)
;-)
-
RE: [Core2] Touch event handlers in [MicroPython]?
hello,
i use the nice lvgl Lib to do That.- create personalized button
- add event on the button
example :
from m5stack import * from m5stack_ui import * from uiflow import * import lvgl as lv screen = M5Screen() screen.clean_screen() screen.set_screen_bg_color(0x00000) lv.init() # create screen scr = lv.obj() # set Background screen scr.set_style_local_bg_color(scr.PART.MAIN, lv.STATE.DEFAULT, lv.color_hex(0x000000)) # create button btn = lv.btn(scr) btn.set_size(80, 80) # change style btn.set_style_local_bg_color(scr.PART.MAIN,lv.STATE.DEFAULT, lv.color_hex(0x0000ff)) styleButton = lv.style_t() # create style styleButton.set_bg_color(lv.STATE.DEFAULT, lv.color_hex(0x0000ff)) styleButton.set_radius(lv.STATE.DEFAULT, 0); styleButton.set_border_color(lv.STATE.DEFAULT, lv.color_hex(0x0000ff)) btn.add_style(btn.PART.MAIN,styleButton) #define this style # callback action def action(btn, event): global src if(event == lv.EVENT.CLICKED): btn.set_style_local_bg_color(btn.PART.MAIN, lv.STATE.DEFAULT, lv.color_hex(0xffffff)) btn.set_style_local_border_color(btn.PART.MAIN, lv.STATE.DEFAULT, lv.color_hex(0xffffff)) # define callback btn.set_event_cb(action) # load the screen lv.scr_load(scr)
best regards
Thomas -
M5Stack Core2 micropython RTC example
Hi friends,
after many tests, I finally understood the curiosity of the RTC of my core2 :machine.RTC().datetime have not the same params that utime.localtime()
machine.RTC().datetime((2021, 3, 21, 0, 16, 37, 0, 0)) # Y,m,d,0,H,s,i,0 utime.sleep_ms(100) # breathe a little lcd.print(str(machine.RTC().datetime())+"\n") # print Y,m,d,w,H,s,i,timestamp lcd.print(str(utime.localtime())) # print Y,m,d,H,s,i,w,z
It's not the same thing that official micropython documentation,
to set RTC, use particular tuple (year , month, day, week=0, hour, minute, second, timestamp=0)regards
thomas -
RE: UIFlow 1.7.3
@fonix232 said in UIFlow 1.7.3:
A kinda related, but strange question - could you please release the source code for the drivers of the various bits of hardware found in the UIFlow firmware? UIFlow is built upon MicroPython, and I would personally prefer to run a clean MicroPython build on a few devices of mine, however the lack of drivers makes it a bit harder than expected. I'm not interested in the UIFlow-related parts, just the low level Core/Unit/Module support drivers (e.g. for M5Paper, a driver for IT8951, a driver for the PMIC, SHT30, GT911). It would allow the community to build MicroPython images without proprietary code, and possibly result in faster updates as well. Plus, you could merge back community fixes into the official UIFlow firmware easily.
Hello,
Same thing for me.
But I like uiFlow tool to test the code.
For example, Update the UIFlow-code project on git with core2 libs would be cool
Best reguards