🤖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

    UIFlow
    2
    2
    1.9k
    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
      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
        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
        • First post
          Last post