Skip to content

Commit

Permalink
battery fix for m5stick
Browse files Browse the repository at this point in the history
  • Loading branch information
dj1ch committed Nov 10, 2024
1 parent a6a684c commit 09253c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minigotchi-ESP32/minigotchi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ void Minigotchi::boot() {

// StickC Plus 1.1 and 2 power management, to keep turned On after unplug USB
// cable
if (Config::screen == "M5StickCP") {
if (Config::screen == "M5STICKCP") {
AXP192 axp192;
axp192.begin(); // Use the instance of AXP192
axp192.ScreenBreath(100); // Use the instance of AXP192
} else if (Config::screen == "M5StickCP2") {
} else if (Config::screen == "M5STICKCP2") {
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
}
Expand Down

0 comments on commit 09253c7

Please sign in to comment.