From 429c93f8e1e5ca13e090f978140dd764962cdd39 Mon Sep 17 00:00:00 2001 From: Paul <5690545+PaulZC@users.noreply.github.com> Date: Wed, 22 Apr 2020 20:49:32 +0100 Subject: [PATCH] Added extra Serial prints just before the TX&RX pins are disabled --- libraries/Examples/examples/Advanced/LowPower/LowPower.ino | 5 ++++- .../Advanced/LowPower_WithWake/LowPower_WithWake.ino | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libraries/Examples/examples/Advanced/LowPower/LowPower.ino b/libraries/Examples/examples/Advanced/LowPower/LowPower.ino index cdb86b4c..78bb1253 100644 --- a/libraries/Examples/examples/Advanced/LowPower/LowPower.ino +++ b/libraries/Examples/examples/Advanced/LowPower/LowPower.ino @@ -63,6 +63,9 @@ void setup() // These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard // are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs // and then disable them completely: + Serial.println("The TX and RX pins need to be disabled to minimize the current draw."); + Serial.println("You should not see any more Serial messages after this..."); + delay(100); am_hal_gpio_pinconfig(48 /* TXO-0 */, g_AM_HAL_GPIO_DISABLE); am_hal_gpio_pinconfig(49 /* RXI-0 */, g_AM_HAL_GPIO_DISABLE); @@ -104,4 +107,4 @@ void setup() void loop() { //Do nothing -} \ No newline at end of file +} diff --git a/libraries/Examples/examples/Advanced/LowPower_WithWake/LowPower_WithWake.ino b/libraries/Examples/examples/Advanced/LowPower_WithWake/LowPower_WithWake.ino index 24300b4a..2ac5c51e 100644 --- a/libraries/Examples/examples/Advanced/LowPower_WithWake/LowPower_WithWake.ino +++ b/libraries/Examples/examples/Advanced/LowPower_WithWake/LowPower_WithWake.ino @@ -56,6 +56,9 @@ void setup() // These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard // are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs // and then disable them completely: + Serial.println("The TX and RX pins need to be disabled to minimize the current draw."); + Serial.println("You should not see any more Serial messages after this..."); + delay(100); am_hal_gpio_pinconfig(48 /* TXO-0 */, g_AM_HAL_GPIO_DISABLE); am_hal_gpio_pinconfig(49 /* RXI-0 */, g_AM_HAL_GPIO_DISABLE); @@ -140,4 +143,4 @@ extern "C" void am_rtc_isr(void) delay(100); digitalWrite(LED_BUILTIN, LOW); } -} \ No newline at end of file +}