refactoring codebase
This commit is contained in:
20
arduino_code/Test/src/config.cpp
Normal file
20
arduino_code/Test/src/config.cpp
Normal 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;
|
||||
Reference in New Issue
Block a user