🤖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)

    PRODUCTS
    2
    3
    43
    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
      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
        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
          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
          • First post
            Last post