Initial Commit

This commit is contained in:
suchmememanyskill
2023-11-11 21:44:23 +01:00
commit 20e1cdbc46
19 changed files with 3844 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#ifndef _GLOBAL_CONFIG_INIT
#define _GLOBAL_CONFIG_INIT
#define CONFIG_VERSION 1
typedef struct _GLOBAL_CONFIG {
unsigned char version;
union {
unsigned char raw;
struct {
bool screenCalibrated : 1;
bool wifiConfigured : 1;
};
};
float screenCalXOffset;
float screenCalXMult;
float screenCalYOffset;
float screenCalYMult;
char wifiSSID[32];
char wifiPassword[64];
} GLOBAL_CONFIG;
extern GLOBAL_CONFIG global_config;
void WriteGlobalConfig();
void VerifyVersion();
void LoadGlobalConfig();
#endif // !_GLOBAL_CONFIG_INIT