Adafruit_NeoPixel
Adafruit_NeoPixel copied to clipboard
With Arduino Nano ESP32 no display when using "By Arduino pin"
-
Arduino board: Arduino Nano ESP32
-
Arduino IDE version (found in Arduino -> About Arduino menu): 2.3.2
-
List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too):
Both with SK6812 and WS2812 LEDs this issue occurs
How to test: With RGBWstrandtest.ino the pin number changed to D5 and LED count to 14 (in my case)
// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1:
#define LED_PIN D5
// How many NeoPixels are attached to the Arduino?
#define LED_COUNT 14
When Pin numbering: By Arduino pin (default) --> LEDs will NOT turn on When Pin numbering: By GPIO number (legacy) --> LEDs turns ON
I expect that when using the D and A pin numbering in my sketch the pin number scheme irrelevant
See: https://support.arduino.cc/hc/en-us/articles/10483225565980-Select-pin-numbering-for-Nano-ESP32-in-Arduino-IDE
You can select pin numbering in Tools > Pin Numbering option:
By Arduino pin (default): Standard for Nano boards by Arduino. By GPIO number (legacy): Standard for most ESP32 boards. Regardless of which pin numbering you use, you can use the pin labels to refer to the pins. The following lines of codes are equivalent, but only the one using D0 to refer to the pin works with both pin numbering options: