Skip to content

Commit 2611644

Browse files
committed
fix example for esp32s2 build
1 parent c7afc80 commit 2611644

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

examples/Composite/mouse_external_flash/mouse_external_flash.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
#if defined(FRAM_CS) && defined(FRAM_SPI)
2727
Adafruit_FlashTransport_SPI flashTransport(FRAM_CS, FRAM_SPI);
2828

29+
#elif defined(ARDUINO_ARCH_ESP32)
30+
// ESP32 use same flash device that store code.
31+
// Therefore there is no need to specify the SPI and SS
32+
Adafruit_FlashTransport_ESP32 flashTransport;
33+
2934
#else
3035
// On-board external flash (QSPI or SPI) macros should already
3136
// defined in your board variant if supported

examples/MassStorage/msc_external_flash/msc_external_flash.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#if defined(FRAM_CS) && defined(FRAM_SPI)
3232
Adafruit_FlashTransport_SPI flashTransport(FRAM_CS, FRAM_SPI);
3333

34+
#elif defined(ARDUINO_ARCH_ESP32)
35+
// ESP32 use same flash device that store code.
36+
// Therefore there is no need to specify the SPI and SS
37+
Adafruit_FlashTransport_ESP32 flashTransport;
38+
3439
#else
3540
// On-board external flash (QSPI or SPI) macros should already
3641
// defined in your board variant if supported

examples/MassStorage/msc_external_flash_sdcard/msc_external_flash_sdcard.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#if defined(FRAM_CS) && defined(FRAM_SPI)
3232
Adafruit_FlashTransport_SPI flashTransport(FRAM_CS, FRAM_SPI);
3333

34+
#elif defined(ARDUINO_ARCH_ESP32)
35+
// ESP32 use same flash device that store code.
36+
// Therefore there is no need to specify the SPI and SS
37+
Adafruit_FlashTransport_ESP32 flashTransport;
38+
3439
#else
3540
// On-board external flash (QSPI or SPI) macros should already
3641
// defined in your board variant if supported

examples/MassStorage/msc_sd/.metroesp32s2_tinyusb.test.skip

Whitespace-only changes.

0 commit comments

Comments
 (0)