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,20 @@
#include "config.h"
// WiFi & MQTT
const char* WIFI_SSID = "Home";
const char* WIFI_PASS = "88888888qwE";
const char* MQTT_SERVER = "192.168.31.225";
const int MQTT_PORT = 1883;
const char* MQTT_USER = "test";
const char* MQTT_PASS = "1234";
const char* MQTT_CLIENT_ID = "ESP32_Stepper";
// Pins
const int DIR_PIN = 18;
const int STEP_PIN = 19;
const int EN_PIN = 21;
// Motor Params
const int STEPS_PER_REVOLUTION = 200;
const int MICROSTEP_FACTOR = 1;
const unsigned long RAMP_DURATION_MS = 2000;