I would like to see big lcd screens version for the Core Model.
Thats it.
I would like to see big lcd screens version for the Core Model.
Thats it.
I want to transfer custom fonts to the m5core model...
And then use them in UIflow.
Any tutorial / tipps ?
@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 ?