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 7e182a8 commit ab412b0Copy full SHA for ab412b0
Adafruit_NeoPixel.cpp
@@ -2169,14 +2169,17 @@ void Adafruit_NeoPixel::show(void) {
2169
void Adafruit_NeoPixel::setPin(uint16_t p) {
2170
if(begun && (pin >= 0)) {
2171
#if defined(AM_PART_APOLLO3)
2172
+ // The pin has already been mapped to the Apollo3 pad
2173
apollo3UnsetPin(pin);
2174
#endif
2175
pinMode(pin, INPUT);
2176
}
- pin = p;
2177
2178
- apollo3SetPin(pin);
+ // Map the specified pin to the Apollo3 pad
2179
+ p = ap3_gpio_pin2pad(p);
2180
+ apollo3SetPin(p);
2181
2182
+ pin = p;
2183
if(begun) {
2184
pinMode(p, OUTPUT);
2185
digitalWrite(p, LOW);
0 commit comments