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

    lcd.setRotation() Not enabled?

    Cores
    2
    6
    12.5k
    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.
    • ajb2k3A
      ajb2k3
      last edited by

      Am I missing something?
      lcd.setRotation()
      doesn't work.

      UIFlow, so easy an adult can learn it!
      If I don't know it, be patient!
      I've ether not learned it or am too drunk to remember it!
      Author of the WIP UIFlow Handbook!
      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL
        lukasmaximus
        last edited by

        Hey @ajb2k3

        lcd.setRotation() requires a number 0-3 in the parentheses for each orientation, and it seems to clear the screen every time it rotates. I found I could print text in all 4 orientations of the screen if I used the print command after set Rotation. like so:

        lcd.setRotation(3) lcd.print('hello',100,100,0xffffff)
        hope that answers your question. I'm back from christmas hols now and i've seen you've been busy
        working on your own manual for the m5stack, awesome stuff, I'd love to connect with you and see how we can cooperate on a manual my email is luke@m5stack.com

        ajb2k3A 1 Reply Last reply Reply Quote 1
        • ajb2k3A
          ajb2k3 @lukasmaximus
          last edited by

          @lukasmaximus said in lcd.setRotation() Not enabled?:

          luke@m5stack.com

          Thanks, could really do with a screen rotation block for the M5Stick.

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • lukasmaximusL
            lukasmaximus
            last edited by

            not sure thats even available in the python driver for the sticks screen yet. Will make a note of that though thanks

            ajb2k3A 1 Reply Last reply Reply Quote 1
            • ajb2k3A
              ajb2k3 @lukasmaximus
              last edited by

              @lukasmaximus
              The autocomplete didn't recognize the lcd.setRotation() function

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • lukasmaximusL
                lukasmaximus
                last edited by

                Noted. The auto-complete still has a way to go

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post