Config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include <ESP8266WiFi.h>
  4. /// <summary>
  5. /// Central configuration class for Minolta remote control application.
  6. /// Centralizes all hardware pins, WiFi settings, server configuration, and serial settings.
  7. /// All configuration values are defined as static constants for easy modification.
  8. /// </summary>
  9. class Config
  10. {
  11. public:
  12. /// <summary>GPIO pin number for camera focus control (D1/GPIO5)</summary>
  13. static const uint8_t PIN_FOCUS = 5;
  14. /// <summary>GPIO pin number for camera shutter control (D2/GPIO4)</summary>
  15. static const uint8_t PIN_SHUTTER = 4;
  16. /// <summary>WiFi network SSID (access point name)</summary>
  17. static const char* WIFI_SSID;
  18. /// <summary>WiFi network password</summary>
  19. static const char* WIFI_PASSWORD;
  20. /// <summary>Static IP address for the WiFi access point</summary>
  21. static const IPAddress WIFI_IP;
  22. /// <summary>Gateway IP address for the WiFi access point</summary>
  23. static const IPAddress WIFI_GATEWAY;
  24. /// <summary>Subnet mask for the WiFi access point</summary>
  25. static const IPAddress WIFI_SUBNET;
  26. /// <summary>Port number for the HTTP server (default: 80)</summary>
  27. static const uint16_t HTTP_PORT = 80;
  28. /// <summary>Serial communication baud rate (default: 115200)</summary>
  29. static const uint32_t SERIAL_BAUD = 115200;
  30. };
  31. #endif // CONFIG_H