This commit is contained in:
Michal Courson
2025-08-28 21:35:21 -04:00
commit 82dde89d80
23 changed files with 6801 additions and 0 deletions

22
main/Config.hpp Normal file
View File

@ -0,0 +1,22 @@
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <Arduino.h>
#include <ArduinoJson.h>
class Config {
public:
void Init();
void Save();
uint8_t trackside_mac[6] = {0x34, 0x85, 0x18, 0xa9, 0x3d, 0xfc};
uint32_t kart_id = -1;
private:
void Load();
void SetDefaults();
JsonDocument conf_json;
};
extern Config config;
#endif