Adjust pin poweroff for Thinknode M6
This commit is contained in:
@@ -48,7 +48,7 @@ void variant_shutdown()
|
|||||||
// This sets the pin to OUTPUT and LOW for the pins *not* in the if block.
|
// This sets the pin to OUTPUT and LOW for the pins *not* in the if block.
|
||||||
for (int pin = 0; pin < 48; pin++) {
|
for (int pin = 0; pin < 48; pin++) {
|
||||||
if (pin == PIN_GPS_EN || pin == ADC_CTRL || pin == PIN_BUTTON1 || pin == PIN_SPI_MISO || pin == PIN_SPI_MOSI ||
|
if (pin == PIN_GPS_EN || pin == ADC_CTRL || pin == PIN_BUTTON1 || pin == PIN_SPI_MISO || pin == PIN_SPI_MOSI ||
|
||||||
pin == PIN_SPI_SCK) {
|
pin == PIN_SPI_SCK || pin == SX126X_CS || pin == SX126X_RESET || pin == SX126X_BUSY || pin == SX126X_DIO1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
pinMode(pin, OUTPUT);
|
pinMode(pin, OUTPUT);
|
||||||
|
|||||||
Reference in New Issue
Block a user