Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions src/hellodrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
#include "hellodrum.h"
#include "Arduino.h"

#ifdef ESP32
#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
// ignore for now
//ToDo: Implement EEPROM handler for RP2040, see https://arduino-pico.readthedocs.io/en/latest/eeprom.html#eeprom-examples
#elif defined(ESP32)
#include "EEPROM_ESP.h"
#else
#include "EEPROM.h"
Expand Down Expand Up @@ -1352,7 +1355,12 @@ void HelloDrum::hihatControlMUX()

//////////////////////////// 6. EEPROM SETTING //////////////////////////////

#ifdef ESP32
#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )

// ignore for now
//ToDo: Implement EEPROM handler for RP2040, see https://arduino-pico.readthedocs.io/en/latest/eeprom.html#eeprom-examples

#elif defined(ESP32)

void HelloDrum::settingEnable()
{
Expand Down Expand Up @@ -1921,7 +1929,13 @@ void HelloDrum::settingName(const char *instrumentName)
nameIndex++;
}

#ifdef ESP32

#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )

// ignore for now
//ToDo: Implement EEPROM handler for RP2040, see https://arduino-pico.readthedocs.io/en/latest/eeprom.html#eeprom-examples

#elif defined(ESP32)

void HelloDrum::loadMemory()
{
Expand Down
5 changes: 4 additions & 1 deletion src/hellodrum.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

#include "Arduino.h"

#ifdef ESP32
#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
// ignore for now
//ToDo: Implement EEPROM handler for RP2040, see https://arduino-pico.readthedocs.io/en/latest/eeprom.html#eeprom-examples
#elif defined(ESP32)
#include "EEPROM_ESP.h"
#else
#include "EEPROM.h"
Expand Down