mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 13:43:25 +00:00
Initial Commit
This commit is contained in:
30
CYD-Klipper-Display/src/conf/global_config.h
Normal file
30
CYD-Klipper-Display/src/conf/global_config.h
Normal 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
|
||||
Reference in New Issue
Block a user