Pytoh code not running after download to device
-
Hi, i'm writing a digital clock using python code. I'm using UIFlow ide to test my project, and when i run it , it works.
But when i download to the device in order to make it run without the ide, it does not work.
These are the first lines:
lcd.clear()lcd.font(lcd.FONT_Default)
lcd.print('v 1.05 06/12/2021',0,0,0xffffff)
wait(1)
try:
buffer = open("/sd/sandra01.jpg").read()
lcd.image_buff(lcd.CENTER, lcd.CENTER, buffer)
wait(3)
except:
passlcd.clear()
the print function is the only one that runs.
Why it's working when executed from the IDE and not when downloaded to the M5 Core?Thanks for your help!!!
-
Hi @Junden ,
Can you just print some text with lcd.print function test again?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login