🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Pytoh code not running after download to device

    Scheduled Pinned Locked Moved UIFlow
    2 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Junden
      last edited by

      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:
      pass

      lcd.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!!!

      1 Reply Last reply Reply Quote 0
      • IAMLIUBOI Offline
        IAMLIUBO
        last edited by

        Hi @Junden ,
        Can you just print some text with lcd.print function test again?

        1 Reply Last reply Reply Quote 0

        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
        • First post
          Last post