21 lines
348 B
C++
21 lines
348 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
struct SavedState {
|
|
String bookPath;
|
|
uint32_t wordIndex = 0;
|
|
uint16_t wpm = 300;
|
|
uint8_t brightness = 5;
|
|
uint8_t fontStyle = 0;
|
|
uint8_t fontSize = 20;
|
|
bool colorsEnabled = true;
|
|
};
|
|
|
|
class Settings {
|
|
public:
|
|
void begin();
|
|
SavedState load() const;
|
|
void save(const SavedState& state) const;
|
|
};
|