This is an old revision of the document!


ESP32 Neopixel

Reference: https://github.com/adafruit/Adafruit_NeoPixel

#include <Arduino.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_TinyUSB.h>

#define LED_PIN 17
#define LED_COUNT 8

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN);

void setup() {
  Serial.begin(115200);

  strip.begin();
  strip.show();
}
void loop() {
  strip.clear();
  strip.setPixelColor(1,0,0,255);
  strip.show();
  delay(1000);
  strip.clear();
  strip.setPixelColor(6,0,0,255);
  strip.show();
  delay(1500);
}
en/iot-open/practical/hardware/rtu/robotnest/scenarios/neopixel.1753868587.txt.gz · Last modified: 2025/07/30 09:43 by kivilands6
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0