kopia lustrzana https://github.com/meshtastic/firmware
Merge pull request #1867 from t413/techo-shutdown-backlight
Powers off eink backlights before shutdownpull/1871/head
commit
0091863888
|
@ -159,7 +159,7 @@ class ButtonThread : public concurrency::OSThread
|
|||
|
||||
static void userButtonDoublePressed()
|
||||
{
|
||||
#if defined(USE_EINK)
|
||||
#if defined(USE_EINK) && defined(PIN_EINK_EN)
|
||||
digitalWrite(PIN_EINK_EN, digitalRead(PIN_EINK_EN) == LOW);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -234,6 +234,9 @@ bool Power::setup()
|
|||
void Power::shutdown()
|
||||
{
|
||||
|
||||
#if defined(USE_EINK) && defined(PIN_EINK_EN)
|
||||
digitalWrite(PIN_EINK_EN, LOW); //power off backlight first
|
||||
#endif
|
||||
|
||||
#ifdef HAS_PMU
|
||||
DEBUG_MSG("Shutting down\n");
|
||||
|
|
Ładowanie…
Reference in New Issue