@felmue said in M5Paper SDCard access:
isd = SPI(-1, miso=Pin(13), mosi=Pin(12), sck=Pin(14))
sd = SDCard(spisd, Pin(4))
os.mount(sd, '/sd')
print(os.listdir('/sd'))
Doesnt work for me ( it works for printing in thonny ... but the device freezes)
@felmue said in M5Paper SDCard access:
isd = SPI(-1, miso=Pin(13), mosi=Pin(12), sck=Pin(14))
sd = SDCard(spisd, Pin(4))
os.mount(sd, '/sd')
print(os.listdir('/sd'))
Doesnt work for me ( it works for printing in thonny ... but the device freezes)
@felmue I tried the core gray
guess I will try again and report back if it works.
Ideally the the new m5 stamps will works as well with coming updates ?
@mrk I figured it out...
turns out you dont need to mount at all just do
import json
with open('/sd/config.json', 'r') as fs:
c = json.loads(fs.read())
label0 = M5TextBox(140, 106, c['ssid'], lcd.FONT_Default, 0xFFFFFF, rotate=0)
I may have run some code prior to that .. dont remember .. try that if the first thing didnt work .. ( this is from boot.py) ... maybe it gets added automatically
import machine, os
try:
sd = machine.SDCard(slot=3, miso=19, mosi=23, sck=18, cs=4)
sd.info()
os.mount(sd, '/sd')
print("SD card mounted at \"/sd\"")
except:
pass
.
import uos
uos.sdconfig(uos.SDMODE_SPI,clk=18,mosi=23,miso=19,cs =4)
uos.mountsd()
@m5stack I tried the
import deviceCfg
deviceCfg.get_board_name()
it throws an error ....
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "deviceCfg.py", line 270, in get_board_name
TypeError: string indices must be integers, not str
I tested all the other functions of deviceCfg and they all work ...
but the one I asked you to add does not....
hanks for implementing it .. but it doesnt work ;)
@zontex nice .. finally smth I can debug with easily
@titimoby thanks I figured out how to use mu now with your video
@dclaar thanks man :D ... I forgot this existed ...
also no im atm exploring options to improve debugging on m5stack ...
if you have any advice please let me know ...
Basicly I just want some way where I can run the code on devices with no screen .. and show me the errors .
I tried mu .. but it doesnt seems to work on m5stack firmware ... same with ampy ... the "ls" command just freezes the prompt and doesnt show the directories -.-...
the only serial connection I managed so far was via putty..
Working on a little project to display notifcations on the m5 core devices...
So maybe I will flash the micropython firmware instead of using uiflow ...
I like uiflow though .... makes testing & developing stuff very nice
So far ive printed errors to the screen...
But using the atom lite models lately ... I struggle with debugging.
When I run custom code via UIFLOW ... how can I get acces to error messages ? prints etc ....
May I ask how you found out about the methods names ?
I dont think they are up for reading on github right ?
I want to transfer custom fonts to the m5core model...
And then use them in UIflow.
Any tutorial / tipps ?
can I copy these generated fonts onto the m5stack flash and import them via micropython ?
I would like to see big lcd screens version for the Core Model.
Thats it.
Well as long as it comes ... ideally 2021 ... im cool ... was just afraid there would be no support at all ... since I dont plan on learning C or using arduino ide ....
Hopefully this is just the start of bigger screens.... I would love to have a bigger m5 lcd version as well
Got myself a m5paper ... so far there is no support for uiflow right ?
Any advice on how to use this thingy with micropython. ty
@m5stack said in How to get Device infos from m5stack Devices:
we didn't open-source all firmware code.
this function would add it in the next version. we will release it this week or next week.
the API would be like that
import deviceCfg deviceCfg.get_board_name()
I installed the latest firmware so was it included ? What is the name of the funciton ?
Can I rely on this working across all devices ? otherwise I may just need to let the user name devices themselves. ;)
did order 1 .. in hopes it will be decent with deep sleeP :D
thanks for the heads up ... I would hope that they made some kind of effort in that regard ... for this particular model.... if anywhere .. I would expect it here..
Quote :
", RTC(BM8563) for controlling accurate timing and deep sleep funcionality. "
Sure its educational ... so it will be worth to me regardless...
if not ... it will still be good to get me started for maybe my own project with a regular esp32 or smth...
E-ink combined with low power is intersting to me .
Already had my eye on a combination of waveshare e-ink displays combined with a esp32 setup....
So this is a good start ;)
@ajb2k3 said in How to get Device infos from m5stack Devices:
There is a way to get the information as M5Burner queries the information before attempting to erase the firmware.
Look at esptool.py and see how it queries the port.
I have no idea what you are talking about.
I just wondered if deep sleep works out of the box on m5stack like described here :?
deep sleep esp32
or if there is anything else I need to look out for. I just want :
1- make device sleep
2-wake up after 24 hrs
3 - run script
4- repeat
So I could put it somewhere on a single charge ... and it would maybe last a month or more
Edit .. nvm I think you were still talking about the device info .. myy bad ..
Already marked this as solved in my head ... as I will just wait for the update as @m5stack mentioned ... and use that for device info.