diff --git a/platformio.ini b/platformio.ini index 0ccbcd7..ccd6cba 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,8 +9,8 @@ ; https://docs.platformio.org/page/projectconf.html [env:SparkFun_Thing_Plus_Artemis] -platform = apollo3blue -board = SparkFun_Thing_Plus_Artemis +platform = espressif32 @ 6.9.0 +board = esp32dev framework = arduino lib_deps = sparkfun/SparkFun Micro OLED Breakout@^1.3.3 diff --git a/src/roast_meter.ino b/src/roast_meter.ino index b53ebec..2e107be 100644 --- a/src/roast_meter.ino +++ b/src/roast_meter.ino @@ -4,7 +4,7 @@ #include "MAX30105.h" -#define PIN_RESET 9 +#define PIN_RESET 17 #define DC_JUMPER 1 MAX30105 particleSensor; diff --git a/src/roast_meter_ble.cpp b/src/roast_meter_ble.cpp index b627c07..09c5c36 100644 --- a/src/roast_meter_ble.cpp +++ b/src/roast_meter_ble.cpp @@ -187,10 +187,10 @@ void loop() { // -- Setups -- void setupEEPROM() { - EEPROM.init(); + // EEPROM.init(); // You may choose to enable more or less EEPROM - // Default length is 1024 bytes (if setLength is not called) - EEPROM.setLength(EEPROM_MAX_LENGTH); + EEPROM.begin(EEPROM_MAX_LENGTH*4); // Note: larger sizes will increase RAM usage and execution time // use EEPROM.get(int index, T type) to retrieve