Program Listing for File Configuration.h
↰ Return to documentation for file (lib/LED_clock/Config/Setup/24h-clock/Configuration.h
)
#ifndef _CONFIGURATIONS_H_
#define _CONFIGURATIONS_H_
#define RUN_WITHOUT_WIFI false
#if RUN_WITHOUT_WIFI == false
#define IS_BLYNK_ACTIVE true
#if IS_BLYNK_ACTIVE == true
#define BLYNK_AUTH_TOKEN "AUTH_TOKEN_GOES_HERE"
#define BLYNK_TEMPLATE_ID "YOUR_TEMPLATE_ID_GOES_HERE"
#define BLYNK_DEVICE_NAME "LED Clock"
#define BLYNK_PRINT Serial
#define BLYNK_SERVER BLYNK_DEFAULT_DOMAIN
#endif
#define ENABLE_OTA_UPLOAD true
#if ENABLE_OTA_UPLOAD == true
#define OTA_UPDATE_HOST_NAME "LED-Clock"
#endif
#define NUM_RETRIES 50
#define USE_ESPTOUCH_SMART_CONFIG true
#if USE_ESPTOUCH_SMART_CONFIG == false
#define WIFI_SSID "SET_YOUR_SSID_HERE"
#define WIFI_PW "SET_YOUR_PASSWORD_HERE"
#endif
#endif
#define HOUR_COLOR CRGB::White
#define MINUTE_COLOR CRGB::Azure
#define INTERNAL_COLOR CRGB::Blue
#define SEPARATION_DOT_COLOR CRGB::Blue
#define OTA_UPDATE_COLOR CRGB::Orange
#define WIFI_CONNECTING_COLOR CRGB::Blue
#define WIFI_CONNECTION_SUCCESSFUL_COLOR CRGB::Green
#define WIFI_SMART_CONFIG_COLOR CRGB::Yellow
#define ERROR_COLOR CRGB::Red
#define NTP_SERVER "pool.ntp.org"
#define TIMEZONE_INFO "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"
#define TIME_SYNC_INTERVAL 1800
#define TIMER_FLASH_TIME false
#define TIMER_FLASH_COUNT 10
#define ALARM_NOTIFICATION_PERIOD 600
#define NOTIFICATION_BRIGHTNESS 125
#define TIME_UPDATE_INTERVAL 500
#define DEFAULT_CLOCK_BRIGHTNESS 128
#define USE_NIGHT_MODE true
#if USE_NIGHT_MODE == true
#define DEFAULT_NIGHT_MODE_START_HOUR 22
#define DEFAULT_NIGHT_MODE_START_MINUTE 0
#define DEFAULT_NIGHT_MODE_END_HOUR 7
#define DEFAULT_NIGHT_MODE_END_MINUTE 0
#define DEFAULT_NIGHT_MODE_BRIGHTNESS 0
#endif
/***************************
*
* LED Configuration
*
*****************************/
#define LED_DATA_PIN 21
#define NUM_SEGMENTS 37
#define NUM_LEDS_PER_SEGMENT 8
#define APPEND_DOWN_LIGHTERS true
#define ADDITIONAL_LEDS 0
#if APPEND_DOWN_LIGHTERS == true
#define NUM_LEDS (NUM_SEGMENTS * NUM_LEDS_PER_SEGMENT + ADDITIONAL_LEDS)
#else
#define NUM_LEDS (NUM_SEGMENTS * NUM_LEDS_PER_SEGMENT)
#define DOWNLIGHT_LED_DATA_PIN 22
#endif
#define NUM_DISPLAYS 7
enum DisplayIDs {
HIGHER_DIGIT_HOUR_DISPLAY = 0,
FIRST_INTERMEDIATE_DISPLAY = 1,
LOWER_DIGIT_HOUR_DISPLAY = 2,
SECOND_INTERMEDIATE_DISPLAY = 3,
HIGHER_DIGIT_MINUTE_DISPLAY = 4,
THIRD_INTERMEDIATE_DISPLAY = 5,
LOWER_DIGIT_MINUTE_DISPLAY = 6
};
#define DISPLAY_0_AT_MIDNIGHT false
#define DISPLAY_SWITCH_OFF_AT_0 false
#define USE_24_HOUR_FORMAT true
#define NUM_SEGMENTS_PROGRESS 18
#define LOADING_ANIMATION_DURATION 3000
#define BRIGHTNESS_INTERPOLATION 3000
#define DISPLAY_FOR_SEPARATION_DOT SECOND_INTERMEDIATE_DISPLAY
#define ANIMATION_TARGET_FPS 60
#define ANIMATION_AFTERGLOW 0.2
#define DOT_FLASH_SPEED 2000
#define DOT_FLASH_INTERVAL 4000
#define NUM_SEPARATION_DOTS 2
/***************************
*
* Light sensor settings
*
*****************************/
#define ENABLE_LIGHT_SENSOR false
#if ENABLE_LIGHT_SENSOR == true
#define LIGHT_SENSOR_PIN 34
#define LIGHT_SENSOR_AVERAGE 15
#define LIGHT_SENSOR_MEDIAN_WIDTH 5
#define LIGHT_SENSOR_READ_DELAY 500
#define LIGHT_SENSOR_MIN 0
#define LIGHT_SENSOR_MAX 4095
#define LIGHT_SENSOR_SENSITIVITY 100
#endif
/*********************************
*
* Misc settings:
*
**********************************/
#define TIME_MANAGER_DEMO_MODE false
#define DIGIT_ANIMATION_SPEED 900
#define FASTLED_SAFE_DELAY_MS 20
#endif