From b4e19dbc028f4da758aa6f9c11482c7a26252819 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 30 May 2019 13:11:42 +0200 Subject: [PATCH] Updated config.sample.h --- include/config.sample.h | 51 ++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/include/config.sample.h b/include/config.sample.h index 16aacd1..a4786a5 100644 --- a/include/config.sample.h +++ b/include/config.sample.h @@ -1,7 +1,13 @@ +#ifndef my_config_H +#define my_config_H + +#include +#include "my_fastled.h" + //#define DEBUG -#define WIFI_SSID "....." -#define WIFI_PASS "....." +#define WIFI_SSID "..." +#define WIFI_PASS "..." #define LED_WIDTH 16 #define LED_HEIGHT 16 @@ -9,21 +15,21 @@ #define LED_TYPE WS2812B #define DATA_PIN 14 #define COLOR_ORDER GRB -uint8_t config_brightness = 20; // Can be overwritten via MQTT_TOPIC_BRIGHTNESS +#define BRIGHTNESS 20 // Can be overwritten via MQTT_TOPIC_BRIGHTNESS +#define TEMPORAL_DITHERING 0 #define NTP_SERVER "pool.ntp.org" #define NTP_INTERVAL 300000 #define NTP_OFFSET 7200 -#define MQTT_ENABLE -#define MQTT_SERVER "....." +#define MQTT_SERVER "..." #define MQTT_PORT 1883 -#define MQTT_USER "pitrix" -#define MQTT_PASS "....." +#define MQTT_USER "..." +#define MQTT_PASS "..." #define MQTT_TOPIC "pitrix/" // MQTT-Topic to listen to. Must not start with a slash, but must end with one." #define HOSTNAME "pitrix-%08X" -#define OTA_STARTUP_DELAY 5 // How many seconds to wait at startup. Set to 0 to disable. +#define OTA_STARTUP_DELAY 10 // How many seconds to wait at startup. Set to 0 to disable. #define FPS 50 #define SHOW_TEXT_DELAY 100 @@ -32,13 +38,26 @@ uint8_t config_brightness = 20; // Can be overwritten via MQTT_TOPIC_BRIGHTNESS #define MONITOR_LOOP_TIME_THRESHOLD 500 #define MONITOR_LOOP_TIME_COUNT_MAX 10 -// Effect config -uint16_t config_effect_cycle_time = 300; // Time in seconds between cycling effects. +#define REPORT_FREE_HEAP true -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; +#define EFFECT_CYCLE_TIME 300 // Time in seconds between cycling effects. -uint16_t config_effect_single_dynamic_loop_time = 200; -uint16_t config_effect_multi_dynamic_loop_time = 1400; +#define EFFECT_MATRIX_LENGTH_MIN 4 +#define EFFECT_MATRIX_LENGTH_MAX 20 +#define EFFECT_MATRIX_SPEED_MIN 50 +#define EFFECT_MATRIX_SPEED_MAX 135 + +#define EFFECT_SINGLE_DYNAMIC_LOOP_TIME 200 +#define EFFECT_MULTI_DYNAMIC_LOOP_TIME 1400 + +#define EFFECT_CONFETTI_PIXELS_PER_LOOP 2 + +#ifdef DEBUG + #define LOG(x) Serial.print(x); + #define LOGln(x) Serial.println(x); +#else + #define LOG(x) do {} while(0); + #define LOGln(x) do {} while(0); +#endif + +#endif