From 94ce890eb28f9535b665e93c184b4657829b43ec Mon Sep 17 00:00:00 2001 From: BlitzCityDIY Date: Wed, 22 Jan 2025 12:03:30 -0500 Subject: [PATCH 1/3] 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 Date: Wed, 22 Jan 2025 12:11:35 -0500 Subject: [PATCH 2/3] remove serial need to test out adalogger --- .../Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino | 2 -- 1 file changed, 2 deletions(-) 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 index e3e48b9b4..c59b530f1 100644 --- 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 @@ -12,8 +12,6 @@ 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(); } From 332efcb952755d16bcfca589677a5ae05b8251ab Mon Sep 17 00:00:00 2001 From: Liz Date: Wed, 22 Jan 2025 21:44:32 -0500 Subject: [PATCH 3/3] update rp2040 sdfat API --- .../Arduino_RP2040_Adalogger_microSD.ino | 2 +- .../{.feather_rp2040.test.only => .none.test.only} | 0 .../Arduino_Sparkle_Motion_Mini_Multi_NeoPixels.ino | 12 +++++++----- 3 files changed, 8 insertions(+), 6 deletions(-) rename Mini_GIF_Players/{.feather_rp2040.test.only => .none.test.only} (100%) diff --git a/Feather_RP2040_Adalogger/Arduino_RP2040_Adalogger_microSD/Arduino_RP2040_Adalogger_microSD.ino b/Feather_RP2040_Adalogger/Arduino_RP2040_Adalogger_microSD/Arduino_RP2040_Adalogger_microSD.ino index f90338bcf..2906dbc35 100644 --- a/Feather_RP2040_Adalogger/Arduino_RP2040_Adalogger_microSD/Arduino_RP2040_Adalogger_microSD.ino +++ b/Feather_RP2040_Adalogger/Arduino_RP2040_Adalogger_microSD/Arduino_RP2040_Adalogger_microSD.ino @@ -30,7 +30,7 @@ #define SD_CS_PIN 23 SdFat SD; -File32 myFile; +FsFile myFile; SdSpiConfig config(SD_CS_PIN, DEDICATED_SPI, SD_SCK_MHZ(16), &SPI1); void setup() { diff --git a/Mini_GIF_Players/.feather_rp2040.test.only b/Mini_GIF_Players/.none.test.only similarity index 100% rename from Mini_GIF_Players/.feather_rp2040.test.only rename to Mini_GIF_Players/.none.test.only 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 index c59b530f1..0c337ed4b 100644 --- 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 @@ -14,6 +14,8 @@ Adafruit_NeoPixel STRIP_2(NUM_PIXELS, BLOCK_2, NEO_GRB + NEO_KHZ800); void setup() { STRIP_1.begin(); STRIP_2.begin(); + STRIP_1.setBrightness(25); + STRIP_2.setBrightness(50); } uint16_t pixelHue_1 = 0; @@ -22,15 +24,15 @@ uint16_t pixelHue_2 = 256; void loop() { pixelHue_1 += 256; for(int i=0; i-1; i--) { + int hue_2 = pixelHue_2 + (i * 65536L / STRIP_2.numPixels()); + STRIP_2.setPixelColor(i, STRIP_2.gamma32(STRIP_2.ColorHSV(hue_2))); } STRIP_2.show();