From 332efcb952755d16bcfca589677a5ae05b8251ab Mon Sep 17 00:00:00 2001 From: Liz Date: Wed, 22 Jan 2025 21:44:32 -0500 Subject: [PATCH] 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();