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 28, 2024
1 parent 6c261a6 commit 0f428aa
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 0f428aa

Please sign in to comment.