2019-05-23 19:18:15 +00:00
|
|
|
//#define DEBUG
|
|
|
|
|
2019-05-21 03:52:57 +00:00
|
|
|
#define WIFI_SSID "....."
|
|
|
|
#define WIFI_PASS "....."
|
|
|
|
|
|
|
|
#define LED_WIDTH 16
|
|
|
|
#define LED_HEIGHT 16
|
|
|
|
#define LED_COUNT 256
|
|
|
|
#define LED_TYPE WS2812B
|
|
|
|
#define DATA_PIN 14
|
|
|
|
#define COLOR_ORDER GRB
|
2019-05-25 18:30:11 +00:00
|
|
|
uint8_t config_brightness = 20; // Can be overwritten via MQTT_TOPIC_BRIGHTNESS
|
2019-05-21 03:52:57 +00:00
|
|
|
|
|
|
|
#define NTP_SERVER "pool.ntp.org"
|
2019-05-27 16:11:37 +00:00
|
|
|
#define NTP_INTERVAL 300000
|
2019-05-21 03:52:57 +00:00
|
|
|
#define NTP_OFFSET 7200
|
|
|
|
|
2019-05-27 16:11:37 +00:00
|
|
|
#define MQTT_ENABLE
|
2019-05-21 03:52:57 +00:00
|
|
|
#define MQTT_SERVER "....."
|
|
|
|
#define MQTT_PORT 1883
|
|
|
|
#define MQTT_USER "pitrix"
|
|
|
|
#define MQTT_PASS "....."
|
2019-05-27 16:11:37 +00:00
|
|
|
#define MQTT_TOPIC "pitrix/" // MQTT-Topic to listen to. Must not start with a slash, but must end with one."
|
2019-05-21 03:52:57 +00:00
|
|
|
|
2019-05-23 19:18:15 +00:00
|
|
|
#define HOSTNAME "pitrix-%08X"
|
2019-05-21 03:52:57 +00:00
|
|
|
#define OTA_STARTUP_DELAY 5 // How many seconds to wait at startup. Set to 0 to disable.
|
|
|
|
|
|
|
|
#define FPS 50
|
|
|
|
#define SHOW_TEXT_DELAY 100
|
2019-05-27 16:13:01 +00:00
|
|
|
|
2019-05-27 16:13:17 +00:00
|
|
|
#define MONITOR_LOOP_TIMES false
|
|
|
|
#define MONITOR_LOOP_TIME_THRESHOLD 500
|
|
|
|
#define MONITOR_LOOP_TIME_COUNT_MAX 10
|
|
|
|
|
2019-05-27 16:13:01 +00:00
|
|
|
// Effect config
|
2019-05-25 19:11:49 +00:00
|
|
|
uint16_t config_effect_cycle_time = 300; // Time in seconds between cycling effects.
|
2019-05-27 16:13:01 +00:00
|
|
|
|
|
|
|
uint16_t config_effect_matrix_length_min = 4;
|
|
|
|
uint16_t config_effect_matrix_length_max = 20;
|
|
|
|
uint16_t config_effect_matrix_speed_min = 50;
|
|
|
|
uint16_t config_effect_matrix_speed_max = 135;
|
|
|
|
|
|
|
|
uint16_t config_effect_single_dynamic_loop_time = 200;
|
|
|
|
uint16_t config_effect_multi_dynamic_loop_time = 1400;
|