From 94ce890eb28f9535b665e93c184b4657829b43ec Mon Sep 17 00:00:00 2001 From: BlitzCityDIY Date: Wed, 22 Jan 2025 12:03:30 -0500 Subject: [PATCH] adding arduino sparkle motion mini example --- ...no_Sparkle_Motion_Mini_Multi_NeoPixels.ino | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Sparkle_Motion_Mini_Examples/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino diff --git a/Sparkle_Motion_Mini_Examples/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino b/Sparkle_Motion_Mini_Examples/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino new file mode 100644 index 000000000..e3e48b9b4 --- /dev/null +++ b/Sparkle_Motion_Mini_Examples/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels/Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino @@ -0,0 +1,41 @@ +// SPDX-FileCopyrightText: 2025 Liz Clark for Adafruit Industries +// +// SPDX-License-Identifier: MIT + +#include + +#define BLOCK_1 33 +#define BLOCK_2 32 +#define NUM_PIXELS 8 + +Adafruit_NeoPixel STRIP_1(NUM_PIXELS, BLOCK_1, NEO_GRB + NEO_KHZ800); +Adafruit_NeoPixel STRIP_2(NUM_PIXELS, BLOCK_2, NEO_GRB + NEO_KHZ800); + +void setup() { + Serial.begin(115200); + + STRIP_1.begin(); + STRIP_2.begin(); +} + +uint16_t pixelHue_1 = 0; +uint16_t pixelHue_2 = 256; + +void loop() { + pixelHue_1 += 256; + for(int i=0; i