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