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

    m5Stack basic. Wrong colors.

    Cores
    3
    5
    8.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.
    • B
      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
        staberas @borisu
        last edited by

        @borisu
        Please provide the code you upload

        1 Reply Last reply Reply Quote 0
        • B
          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
            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
              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
              • First post
                Last post