initial
This commit is contained in:
22
main/Config.hpp
Normal file
22
main/Config.hpp
Normal 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
|
||||
Reference in New Issue
Block a user