pitrix/include/config.sample.h

87 lines
2.1 KiB
C
Raw Normal View History

2019-06-05 04:29:47 +00:00
#pragma once
2019-05-30 11:11:42 +00:00
#include <Arduino.h>
#define FASTLED_INTERNAL
#include <FastLED.h>
2019-05-30 11:11:42 +00:00
//#define DEBUG
2019-06-06 04:41:11 +00:00
//#define CONFIG_USABLE // Uncomment this by removing the // at the beginning!
2019-05-30 11:11:42 +00:00
#define WIFI_SSID "..."
#define WIFI_PASS "..."
2019-05-21 03:52:57 +00:00
#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-30 11:11:42 +00:00
#define BRIGHTNESS 20 // Can be overwritten via MQTT_TOPIC_BRIGHTNESS
#define TEMPORAL_DITHERING 0
2019-05-21 03:52:57 +00:00
#define NTP_SERVER "pool.ntp.org"
#define NTP_INTERVAL 300000
2019-05-21 03:52:57 +00:00
#define NTP_OFFSET 7200
2019-05-30 11:11:42 +00:00
#define MQTT_SERVER "..."
2019-05-21 03:52:57 +00:00
#define MQTT_PORT 1883
2019-05-30 11:11:42 +00:00
#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 MQTT_TOPIC_LOG "pitrix/log"
2019-06-06 04:41:11 +00:00
#define MQTT_REPORT_METRICS
2019-05-21 03:52:57 +00:00
#define HOSTNAME "pitrix-%08X"
2019-05-30 11:11:42 +00:00
#define OTA_STARTUP_DELAY 10 // How many seconds to wait at startup. Set to 0 to disable.
2019-05-21 03:52:57 +00:00
#define FPS 50
#define SHOW_TEXT_DELAY 100
#define MONITOR_LOOP_TIMES false
#define MONITOR_LOOP_TIME_THRESHOLD 500
#define MONITOR_LOOP_TIME_COUNT_MAX 10
2019-05-30 11:11:42 +00:00
#define EFFECT_CYCLE_TIME 300 // Time in seconds between cycling effects.
2019-06-05 04:29:47 +00:00
#define EFFECT_CYCLE_RANDOM false
2019-05-30 11:11:42 +00:00
#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 50
2019-05-30 11:11:42 +00:00
#define EFFECT_MULTI_DYNAMIC_LOOP_TIME 1400
#define EFFECT_CONFETTI_PIXELS_PER_LOOP 2
2019-05-31 03:45:07 +00:00
#define EFFECT_SNAKE_DIRECTION_CHANGE 10
#define EFFECT_SNAKE_SLOWDOWN 2
#define EFFECT_FIRE_COOLDOWN 192
#define EFFECT_FIRE_SPARK_CHANCE 5
2019-06-06 04:41:11 +00:00
#define EFFECT_FIREWORK_SHOT_CHANCE 200
#define EFFECT_FIREWORK_BLUR 200
#define EFFECT_FIREWORK_FADEOUT_SPEED 5
2019-06-07 04:24:16 +00:00
2019-06-05 04:29:47 +00:00
// Stop editing here
2019-05-30 11:11:42 +00:00
#ifdef DEBUG
2019-06-07 04:24:16 +00:00
#ifdef MQTT_ENABLE
#include "my_mqtt.h"
#define LOG(x) mqtt_log(x); Serial.print(x);
#define LOGln(x) mqtt_log_ln(x); Serial.println(x);
#else
#define LOG(x) Serial.print(x);
#define LOGln(x) Serial.println(x);
#endif
2019-05-30 11:11:42 +00:00
#else
2019-06-07 04:24:16 +00:00
#define LOG(x) do {} while(0);
#define LOGln(x) do {} while(0);
2019-05-30 11:11:42 +00:00
#endif
2019-06-06 04:41:11 +00:00
#ifndef CONFIG_USABLE
2019-06-07 04:24:16 +00:00
#error "CONFIG_USABLE isn't set!"
2019-06-06 04:41:11 +00:00
#endif