From 540b188058c4e4696c360b16668f38733b8506eb Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 6 Jun 2019 06:41:11 +0200 Subject: [PATCH] Extended config.sample.h --- include/config.sample.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/config.sample.h b/include/config.sample.h index f1d8333..a57946a 100644 --- a/include/config.sample.h +++ b/include/config.sample.h @@ -5,6 +5,7 @@ #include //#define DEBUG +//#define CONFIG_USABLE // Uncomment this by removing the // at the beginning! #define WIFI_SSID "..." #define WIFI_PASS "..." @@ -28,6 +29,7 @@ #define MQTT_PASS "..." #define MQTT_TOPIC "pitrix/" // MQTT-Topic to listen to. Must not start with a slash, but must end with one." #define MQTT_TOPIC_LOG "pitrix/log" +#define MQTT_REPORT_METRICS #define HOSTNAME "pitrix-%08X" #define OTA_STARTUP_DELAY 10 // How many seconds to wait at startup. Set to 0 to disable. @@ -39,8 +41,6 @@ #define MONITOR_LOOP_TIME_THRESHOLD 500 #define MONITOR_LOOP_TIME_COUNT_MAX 10 -#define REPORT_METRICS true - #define EFFECT_CYCLE_TIME 300 // Time in seconds between cycling effects. #define EFFECT_CYCLE_RANDOM false @@ -60,8 +60,10 @@ #define EFFECT_FIRE_COOLDOWN 192 #define EFFECT_FIRE_SPARK_CHANCE 5 -#define EFFECT_FIREWORK_SHOT_CHANCE 10 -#define EFFECT_FIREWORK_BLUR 25 +#define EFFECT_FIREWORK_SHOT_CHANCE 200 +#define EFFECT_FIREWORK_BLUR 200 +#define EFFECT_FIREWORK_FADEOUT_SPEED 5 + // Stop editing here @@ -72,3 +74,7 @@ #define LOG(x) do {} while(0); #define LOGln(x) do {} while(0); #endif + +#ifndef CONFIG_USABLE + #error "CONFIG_USABLE isn't set!" +#endif