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

    m5Stack basic. Wrong colors.

    Scheduled Pinned Locked Moved Cores
    5 Posts 3 Posters 10.8k Views 1 Watching
    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.
    • B Offline
      borisu
      last edited by borisu

      Hi everybody. Please advise. I got two cores basic ones. I use Arduino IDE. If I load following code M5.Lcd.fillScreen(WHITE) I get black screen. I have similar issues with all of the other colors. I have this problem on both devices. There were no such issue on old core. Could someone suggest what to do in such case. Thanks.
      in addition I tested different hex codes of colors. Again 0x000000 gives me white screen and 0xeeeeee gives black. Is it possible to fix?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        staberas @borisu
        last edited by

        @borisu
        Please provide the code you upload

        1 Reply Last reply Reply Quote 0
        • B Offline
          borisu
          last edited by

          The code is simple
          #include <M5Stack.h>

          void setup() {

          M5.begin();

          // Lcd should display blue
          M5.Lcd.fillScreen(BLUE);
          }

          void loop(){

          }

          In this case the screen is something between yellow and green.

          1 Reply Last reply Reply Quote 0
          • B Offline
            borisu
            last edited by

            It works if add

            #include<M5Stack.h>

            void setup(){
            M5.begin();
            M5.Lcd.fillScreen(BLUE)
            M5.Lcd.invertDisplay(true)
            }

            void loop(){

            }

            1 Reply Last reply Reply Quote 0
            • m5stackM Offline
              m5stack
              last edited by

              hi , did your has upgrade your library version to latest. (m5stack lib version >= 0.2.8)

              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