From 65ca7e882f59d6d53c2b0d1dde47ac59f108128f Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 7 Mar 2024 09:01:54 -0500 Subject: [PATCH] Add neopixel example --- ino/demos/esp32_neopixel/esp32_neopixel.ino | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ino/demos/esp32_neopixel/esp32_neopixel.ino diff --git a/ino/demos/esp32_neopixel/esp32_neopixel.ino b/ino/demos/esp32_neopixel/esp32_neopixel.ino new file mode 100644 index 0000000..bef3eda --- /dev/null +++ b/ino/demos/esp32_neopixel/esp32_neopixel.ino @@ -0,0 +1,19 @@ + +#include + +#define PIN 15 +#define NUM 6 + +Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM, PIN, NEO_GRB + NEO_KHZ800); + +void setup() { + Serial.begin(115200); + pixels.begin(); + pixels.setBrightness(255); + pixels.fill(0xFF0000); + pixels.show(); +} + +void loop () { + +} \ No newline at end of file