refactoring codebase

This commit is contained in:
2026-07-06 23:11:34 +07:00
parent 77997736f1
commit 9c522fb95c
8 changed files with 469 additions and 170 deletions

View File

@@ -0,0 +1,23 @@
#ifndef CONFIG_H
#define CONFIG_H
// WiFi & MQTT
extern const char* WIFI_SSID;
extern const char* WIFI_PASS;
extern const char* MQTT_SERVER;
extern const int MQTT_PORT;
extern const char* MQTT_USER;
extern const char* MQTT_PASS;
extern const char* MQTT_CLIENT_ID;
// Pins
extern const int DIR_PIN;
extern const int STEP_PIN;
extern const int EN_PIN;
// Motor Params
extern const int STEPS_PER_REVOLUTION;
extern const int MICROSTEP_FACTOR;
extern const unsigned long RAMP_DURATION_MS;
#endif