Skip to content

Commit

Permalink
use high discharge mode for the led power pin
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteHudyma committed Jul 23, 2024
1 parent 35d72dc commit 7fe3d97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/user_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ void power_off_sequence() {
strip.show(); // Clear all pixels

digitalWrite(LED_POWER_PIN, LOW);
pinMode(LED_POWER_PIN, INPUT_PULLDOWN);
// high drive input (5mA)
// The only way to discharge the DC-DC pin...
pinMode(LED_POWER_PIN, OUTPUT_H0H1);
}

void brightness_update(const uint8_t brightness) {
Expand Down

0 comments on commit 7fe3d97

Please sign in to comment.