/************************************************************************************************* PROGRAMMINFO ************************************************************************************************** Funktion: NEO-Pixel-Ring ************************************************************************************************** Version: 06.05.2021 ************************************************************************************************** Board: NANO ************************************************************************************************** C++ Arduino IDE V1.8.13 ************************************************************************************************** Einstellungen: https://dl.espressif.com/dl/package_esp32_index.json http://dan.drown.org/stm32duino/package_STM32duino_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json ************************************************************************************************** Librarys - Adafruit_NeoPixel.h V 1.7.0 ************************************************************************************************** **************************************************************************************************/ #include #ifdef __AVR__ #include #endif #define NUMPIXELS 16 #define PIN 6 Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { strip.begin(); strip.setBrightness(50); strip.show(); } void loop() { colorWipe(strip.Color(255, 0, 0), 50); // Rot colorWipe(strip.Color(0, 255, 0), 50); // Gruen colorWipe(strip.Color(0, 0, 255), 50); // Blau theaterChase(strip.Color(127, 127, 127), 50); // Weiss theaterChase(strip.Color(127, 0, 0), 50); // Rot theaterChase(strip.Color(0, 0, 127), 50); // Blau rainbow(20); rainbowCycle(20); theaterChaseRainbow(50); } void colorWipe(uint32_t c, uint8_t wait) { for(uint16_t i=0; i