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

    M5PaperS3 Widgets.setRotation(3) crashes system (disconnect from usb and reboot)

    Scheduled Pinned Locked Moved PRODUCTS
    3 Posts 2 Posters 1.8k 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.
    • P Offline
      pabou
      last edited by

      Hello

      configuration: M5PaperS3 , UIflow2 V2.3.3 (micropython 1.15)

      using rotation(3) , ie:
      Widgets.setBrightness(150)
      Widgets.fillScreen(0x000000)
      Widgets.setRotation(3)
      Display.drawJpg("my_file.jpg", 0, 0, 0, 0, 0, 0, 1, 1)

      CRASHES the M5PaperS3 (disconnect from usb and reboot)
      I tried with other file and always get a crash with rotation 3

      NOTE that all other rotations (0,1,2) works perfectly, INCLUDING with "my_file.jpg"

      all the file I used have been resize to the M5PaperS3 screen size.

      there is definitely something bad with rotation 3

      Please help, having the 4 rotation is critical for my project

      Thanks in advance

      Pascal Boudalier

      felmueF 1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue @pabou
        last edited by

        Hello @pabou

        granted I do not have your particular my_file.jpg, but when I run below code my M5PaperS3 does not crash.

          Widgets.setBrightness(150)
          Widgets.fillScreen(0x000000)
          Widgets.setRotation(3)
          Display.drawJpg("/flash/res/img/uiflow.jpg", 0, 0, 0, 0, 0, 0, 1, 1)
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          pabou @felmue
          last edited by

          @felmue
          Thanks Felix.

          All my files are 960x540.
          Displaying only 959x 539 for rot 3 fixed the crash problem (do not ask me why)

          Displaying the same image 960x540 with rot 1 is OK.

          good enough for me!

          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