Ajout gestion LM18220

This commit is contained in:
Serge NOEL
2026-08-05 11:51:54 +02:00
parent fd3fc380d8
commit be3dbaa824
7 changed files with 207 additions and 46 deletions
+4 -3
View File
@@ -2,14 +2,15 @@
#define CONFIG_H
// MQTT broker settings (leave MQTT server values as needed)
#define MQTT_SERVER "192.168.1.10"
#define MQTT_SERVER "192.168.1.53"
#define MQTT_PORT 1883
#define MQTT_TOPIC_CMD "dcc/command"
#define MQTT_TOPIC_STATUS "dcc/status"
#define MQTT_TOPIC_RESPONSE "dcc/response"
// Pin used for simulated DCC output (adjust as needed)
#define DCC_OUTPUT_PIN 27
// Pin used for DCC output (LM18200 IC or similar)
#define DCC_DIR_PIN 27
#define DCC_PWM_PIN 26
// Access point SSID shown when no WiFi credentials are configured
#define DEFAULT_AP_SSID "DCC_Config"