File tree 2 files changed +8
-2
lines changed
libraries/Examples/examples/Advanced
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ void setup()
63
63
// These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard
64
64
// are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs
65
65
// 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 );
66
69
am_hal_gpio_pinconfig (48 /* TXO-0 */ , g_AM_HAL_GPIO_DISABLE);
67
70
am_hal_gpio_pinconfig (49 /* RXI-0 */ , g_AM_HAL_GPIO_DISABLE);
68
71
@@ -104,4 +107,4 @@ void setup()
104
107
void loop ()
105
108
{
106
109
// Do nothing
107
- }
110
+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ void setup()
56
56
// These two GPIOs are critical: the TX/RX connections between the Artemis module and the CH340S on the Blackboard
57
57
// are prone to backfeeding each other. To stop this from happening, we must reconfigure those pins as GPIOs
58
58
// 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 );
59
62
am_hal_gpio_pinconfig (48 /* TXO-0 */ , g_AM_HAL_GPIO_DISABLE);
60
63
am_hal_gpio_pinconfig (49 /* RXI-0 */ , g_AM_HAL_GPIO_DISABLE);
61
64
@@ -140,4 +143,4 @@ extern "C" void am_rtc_isr(void)
140
143
delay (100 );
141
144
digitalWrite (LED_BUILTIN, LOW);
142
145
}
143
- }
146
+ }
You can’t perform that action at this time.
0 commit comments