Skip to content

Commit 269de5c

Browse files
author
Owen
authored
Merge pull request #157 from PaulZC/PaulZC__LowPower_Example_Tweaks
Added extra Serial prints just before the TX&RX pins are disabled
2 parents a8da890 + 429c93f commit 269de5c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libraries/Examples/examples/Advanced/LowPower/LowPower.ino

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ void setup()
6363
// These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard
6464
// are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs
6565
// and then disable them completely:
66+
Serial.println("The TX and RX pins need to be disabled to minimize the current draw.");
67+
Serial.println("You should not see any more Serial messages after this...");
68+
delay(100);
6669
am_hal_gpio_pinconfig(48 /* TXO-0 */, g_AM_HAL_GPIO_DISABLE);
6770
am_hal_gpio_pinconfig(49 /* RXI-0 */, g_AM_HAL_GPIO_DISABLE);
6871

@@ -104,4 +107,4 @@ void setup()
104107
void loop()
105108
{
106109
//Do nothing
107-
}
110+
}

libraries/Examples/examples/Advanced/LowPower_WithWake/LowPower_WithWake.ino

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ void setup()
5656
// These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard
5757
// are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs
5858
// and then disable them completely:
59+
Serial.println("The TX and RX pins need to be disabled to minimize the current draw.");
60+
Serial.println("You should not see any more Serial messages after this...");
61+
delay(100);
5962
am_hal_gpio_pinconfig(48 /* TXO-0 */, g_AM_HAL_GPIO_DISABLE);
6063
am_hal_gpio_pinconfig(49 /* RXI-0 */, g_AM_HAL_GPIO_DISABLE);
6164

@@ -140,4 +143,4 @@ extern "C" void am_rtc_isr(void)
140143
delay(100);
141144
digitalWrite(LED_BUILTIN, LOW);
142145
}
143-
}
146+
}

0 commit comments

Comments
 (0)