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

    M5StickC-Plus Screen "Flash" on Startup

    Arduino
    1
    1
    1.8k
    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.
    • W
      wsanders
      last edited by wsanders

      If you run the following trivial program, you will notice that the screen "flashes" with uninitialized data at startup.

      #include <M5StickCPlus.h>
      // DANGER WILL ROBINSON: This sketch turns the device off. To upload,
      // turn the device on as soon as you see "Connecting..." in the IDE.
      // Otherwise the device isn't on when you try to upload to it!
      void setup() {
      M5.begin();
      // This does not minimize the beightness of the "flash"
      // M5.Axp.ScreenBreath(7);
      M5.Lcd.fillScreen(BLACK);
      }
      void loop() {
      M5.Lcd.setTextSize(3);
      M5.Lcd.println("BYE");
      delay(5000);
      M5.Axp.PowerOff();
      }

      Is there a way to avoid this "flash"? This is probably a bug in M5.begin(), one would want to initialize the screen memory before turning the LCD on.

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