57 lines
1.9 KiB
C
57 lines
1.9 KiB
C
#pragma once
|
|
|
|
// ============================================================================
|
|
// 🧠 CONFIGURAÇÃO GLOBAL DO PROJETO ESP-IDF
|
|
// ============================================================================
|
|
// Todos os módulos incluem este header para aceder a constantes e parâmetros.
|
|
// Ajusta os valores conforme o teu hardware e preferências.
|
|
// ============================================================================
|
|
|
|
// --- Identificação ---
|
|
#define PROJECT_NAME "LED_shit"
|
|
#define PROJECT_VERSION "1.0.0"
|
|
|
|
// --- Rede WiFi ---
|
|
#define WIFI_AP_SSID "ESP32_Config" // SSID modo AP
|
|
#define WIFI_AP_PASS "12345678" // Senha modo AP
|
|
#define WIFI_MAX_CONN 4 // nº máximo de conexões no modo AP
|
|
|
|
// --- MQTT Broker ---
|
|
#define MQTT_BROKER_HOST "mtqq.xupas.mywire.org"
|
|
#define MQTT_BROKER_PORT_TLS 8883
|
|
#define MQTT_BROKER_PORT_TCP 1883
|
|
#define MQTT_USER "xupa"
|
|
#define MQTT_PASS "xupa"
|
|
|
|
// --- LEDs ---
|
|
#define LED_PIN 13
|
|
#define LED_COUNT 60
|
|
#define LED_RES_HZ 10000000
|
|
|
|
// --- EEPROM / NVS ---
|
|
#define EEPROM_NAMESPACE "storage"
|
|
#define EEPROM_TLS_KEY "tls_cert"
|
|
#define EEPROM_MAX_SIZE (100 * 1024) // 100 KB reservados virtualmente
|
|
|
|
// --- Display / outras features futuras ---
|
|
#define USE_DISPLAY_TM1637 0
|
|
#define USE_DISPLAY_I2C 0
|
|
|
|
// --- Logs ---
|
|
#define LOG_LEVEL_DEFAULT ESP_LOG_INFO
|
|
|
|
// --- Segurança ---
|
|
#define USE_TLS 1 // 1 = usa TLS no MQTT, 0 = TCP
|
|
#define AUTO_RECONNECT 1
|
|
|
|
// --- Animações / jogo ---
|
|
#define ENABLE_DEMO_MODE 1
|
|
#define ENABLE_IDLE_ANIM 1
|
|
|
|
// --- Tempo ---
|
|
#define SNTP_SERVER "pool.ntp.org"
|
|
|
|
// ============================================================================
|
|
// ⚙️ Fim da configuração global
|
|
// ============================================================================
|