Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M5Stack C plus no backlight #52

Open
echelon75 opened this issue Nov 3, 2023 · 0 comments
Open

M5Stack C plus no backlight #52

echelon75 opened this issue Nov 3, 2023 · 0 comments

Comments

@echelon75
Copy link

Hi,

When I upload code in my M5Stack C plus backlight led are off .
to fix this issue here is code :

// Boot/Help Screen
 digitalWrite(M5_LED, HIGH); //LEDOFF
 M5.Lcd.fillScreen(BLACK);
 M5.Lcd.setTextSize(3);
 M5.Lcd.setCursor(5, 10);
 M5.Lcd.setRotation(rotation);
 M5.Lcd.print("AppleJuice\n");
 M5.Lcd.setTextSize(2);
 M5.Lcd.print("For M5StickC-Plus\nBy Axon | IG: @4x0nn\n\nSide Key: Next\nM5 Key: Select");

Just add following command : M5.Axp.ScreenBreath(100);

// Boot/Help Screen
digitalWrite(M5_LED, HIGH); //LEDOFF
M5.Lcd.fillScreen(BLACK);
M5.Lcd.setTextSize(3);
M5.Lcd.setCursor(5, 10);
M5.Lcd.setRotation(rotation);
M5.Lcd.print("AppleJuice\n");
M5.Lcd.setTextSize(2);
M5.Lcd.print("For M5StickC-Plus\nBy Axon | IG: @4x0nn\n\nSide Key: Next\nM5 Key: Select");
M5.Axp.ScreenBreath(100);

Enjoy

Richard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant