Move device specific shutdown code from main-nrf52.cpp to the appropriate cariant.cpp files

This commit is contained in:
Jonathan Bennett
2026-01-25 21:54:50 -06:00
parent 87cc321687
commit 6fc895c89e
8 changed files with 81 additions and 59 deletions

View File

@@ -42,3 +42,13 @@ void initVariant()
pinMode(PIN_LED3, OUTPUT);
ledOff(PIN_LED3);
}
void variant_shutdown()
{
// To power off the T-Echo, the display must be set
// as an input pin; otherwise, there will be leakage current.
pinMode(PIN_EINK_CS, INPUT);
pinMode(PIN_EINK_DC, INPUT);
pinMode(PIN_EINK_RES, INPUT);
pinMode(PIN_EINK_BUSY, INPUT);
}