Added config for web interface.

This commit is contained in:
Holger Weber
2026-02-22 22:56:23 +01:00
parent 400edb45e5
commit 870456c17b
3 changed files with 146 additions and 42 deletions

View File

@@ -59,10 +59,13 @@ static const int kDefaultServoPin = 4;
#endif
struct ConfigParameter {
const char *type;
const char *key;
int *value;
void *value;
String description;
int defaultValue;
const char *defaultText;
bool secret;
};
extern FastAccelStepperEngine g_stepEngine;
@@ -94,6 +97,8 @@ extern int g_iPenEnablePin;
extern int g_iServoPin;
extern int g_iRotMicrostep;
extern int g_iPenMicrostep;
extern String g_sWifiSsid;
extern String g_sWifiPassword;
extern ConfigParameter configParameters[];
extern const size_t configParameterCount;