How does your setup look exactly?
Do you have multiple esp32 connected?
What about the switching ports? (never heard of this).
Which port is selected in the bottom bar?
What sketch is running?
I guess you’ll see “HardwareSerial Serial”.
That means that the output is routed to the UART port.
But the waveshare board does not have UART to USB Chip / Port.
In this case you’ll have to use USBSerial.begin(...) and USBSerial.print("...");
#include <Adafruit_NeoPixel.h>
#define LED_PIN 21 // Pin where the NeoPixel is connected
#define NUMPIXELS 1 // Number of pixels in the strip (or individual NeoPixel)
Adafruit_NeoPixel pixels(NUMPIXELS, LED_PIN, NEO_GRB + NEO_KHZ800);
void setup()
{
Serial.begin(115200);
pixels.begin(); // Initialize the NeoPixel library.
pixels.show(); // Initialize all pixels to 'off'
}
void loop()
{
neopixelWrite(LED_PIN, 255, 0, 0); // Set NeoPixel to red
Serial.println("RED");
delay(1000);
neopixelWrite(LED_PIN, 0, 255, 0); // Set NeoPixel to green
Serial.println("GREEN");
delay(1000);
neopixelWrite(LED_PIN, 0, 0, 255); // Set NeoPixel to blue
Serial.println("BLUE");
delay(1000);
}
void neopixelWrite(int gpio, int red, int green, int blue)
{
pixels.setPixelColor(0, pixels.Color(red, green, blue)); // Set the color of pixel 0
pixels.show(); // Update the NeoPixel strip with the new color
}
works like a charm
but still won’t enter in boot mode by themself
Auto-detected: /dev/ttyACM0
Uploading .pio/build/lolin_s3_mini/firmware.bin
esptool.py v4.5.1
Serial port /dev/ttyACM0
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
A fatal error occurred: No serial data received.
*** [upload] Error 2
Erm… neopixelWrite is a builtin function! No need for external adafruit library!
Due to a bug inside Arduino, you have to restart the ESP manually after flashing. This is fixed in Arduino 2.0.17 (which is not yet available on PlatformIO).