We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32148cf commit 6d78366Copy full SHA for 6d78366
variants/arduino_nano_nora/variant.cpp
@@ -5,6 +5,28 @@
5
6
extern "C" {
7
void initVariant() {
8
+ // FIXME: fix issues with GPIO matrix not being soft reset properly
9
+ for (int pin = 0; pin<NUM_DIGITAL_PINS; ++pin) {
10
+ switch (pin) {
11
+ case LED_RED:
12
+ case LED_GREEN:
13
+ case LED_BLUE:
14
+ // set RGB pins to dig outputs, HIGH=off
15
+ pinMode(pin, OUTPUT);
16
+ digitalWrite(pin, HIGH);
17
+ break;
18
+
19
+ case TX:
20
+ case RX:
21
+ // leave UART pins alone
22
23
24
+ default:
25
+ // initialize other pins to dig inputs
26
+ pinMode(pin, INPUT);
27
28
+ }
29
30
}
31
32
0 commit comments