message memories added

This commit is contained in:
Martin Brodbeck 2024-03-04 12:37:04 +01:00
parent b88f2489c1
commit b076f2c637

View file

@ -2,7 +2,7 @@
#include "pico/flash.h" #include "pico/flash.h"
const uint16_t MAGIC_NUMBER = 3; const uint16_t MAGIC_NUMBER = 4;
enum class Mode : uint8_t { IambicA = 0, IambicB, Straight }; enum class Mode : uint8_t { IambicA = 0, IambicB, Straight };
@ -12,7 +12,10 @@ struct Settings {
uint8_t wpm {0}; // Bytes: 1 uint8_t wpm {0}; // Bytes: 1
uint8_t wpmPotiMin {5}; // Bytes: 1 uint8_t wpmPotiMin {5}; // Bytes: 1
uint8_t wpmPotiMax {55}; // Bytes: 1 uint8_t wpmPotiMax {55}; // Bytes: 1
uint8_t dummy[FLASH_PAGE_SIZE - 6] {0}; // Sum : 6 char message1[64] {0}; // Bytes: 64
char message2[64] {0}; // Bytes: 64
char message3[64] {0}; // Bytes: 64
uint8_t dummy[FLASH_PAGE_SIZE - 198] {0}; // Sum :198
}; };
void store_settings(Settings &settings); void store_settings(Settings &settings);