File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
libraries/Examples/examples/Advanced Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff 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()
104107void loop ()
105108{
106109 // Do nothing
107- }
110+ }
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments