Added README as well as some comments in config.sample.h
This commit is contained in:
@ -4,36 +4,36 @@
|
||||
#define FASTLED_INTERNAL
|
||||
#include <FastLED.h>
|
||||
|
||||
//#define DEBUG
|
||||
//#define DEBUG // Uncomment this to enable Debug messages via Serial and, if enabled, MQTT.
|
||||
//#define CONFIG_USABLE // Uncomment this by removing the // at the beginning!
|
||||
|
||||
#define WIFI_SSID "..."
|
||||
#define WIFI_PASS "..."
|
||||
#define WIFI_SSID "..." // SSID of the wifi to connect to
|
||||
#define WIFI_PASS "..." // Password of the wifi
|
||||
|
||||
#define LED_WIDTH 16
|
||||
#define LED_HEIGHT 16
|
||||
#define LED_COUNT 256
|
||||
#define LED_TYPE WS2812B
|
||||
#define DATA_PIN 14
|
||||
#define COLOR_ORDER GRB
|
||||
#define BRIGHTNESS 20 // Can be overwritten via MQTT_TOPIC_BRIGHTNESS
|
||||
#define TEMPORAL_DITHERING 0
|
||||
#define LED_WIDTH 16 // Number of LEDs in horizontal direction
|
||||
#define LED_HEIGHT 16 // Number of LEDs in vertical direction
|
||||
#define LED_COUNT 256 // Total number of LEDs. WIDTH*HEIGHT.
|
||||
#define LED_TYPE WS2812B // Type of LEDs
|
||||
#define DATA_PIN 14 // PIN the LEDs are connected to on the microcontroller
|
||||
#define COLOR_ORDER GRB // Order of the colors of the LEDs. If you get unexpected colors, you should change this.
|
||||
#define BRIGHTNESS 20 // Default brightness of the LEDs. 1 (lowest)-255 (brightest)
|
||||
#define TEMPORAL_DITHERING 0 // Use temporal dithering. Can lead to flickering.
|
||||
|
||||
#define NTP_SERVER "pool.ntp.org"
|
||||
#define NTP_INTERVAL 300000
|
||||
#define NTP_OFFSET 7200
|
||||
#define NTP_SERVER "pool.ntp.org" // NTP server to use to fetch the current time
|
||||
#define NTP_INTERVAL 300000 // Interval in ms to update the time from the NTP server. 300000 ms = 5 minutes
|
||||
#define NTP_OFFSET 7200 // Offset of your local time from UTC in seconds. Germany, daylight savings time = 2 hours = 7200 seconds
|
||||
|
||||
#define MQTT_ENABLE
|
||||
#define MQTT_SERVER "..."
|
||||
#define MQTT_ENABLE // Use MQTT. Add slashes to the start of the line to disable MQTT completely.
|
||||
#define MQTT_SERVER "..." // Data for connecting to the MQTT server
|
||||
#define MQTT_PORT 1883
|
||||
#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_REPORT_METRICS
|
||||
#define MQTT_TOPIC "pitrix/" // MQTT topic to listen to. Must not start with a slash, but must end with one.
|
||||
#define MQTT_REPORT_METRICS // Whether to report metrics via MQTT. Disable if unwanted.
|
||||
#define MQTT_TOPIC_WEATHER "accuweather/pitrix/" // MQTT topic to listen for weather data. Must not start with a slash, but must end with one.
|
||||
|
||||
#define HOSTNAME "pitrix-%08X"
|
||||
#define OTA_STARTUP_DELAY 10 // How many seconds to wait at startup. Set to 0 to disable.
|
||||
#define HOSTNAME "pitrix-%08X" // Hostname of the ESP to use for OTA and MQTT client id. %08X will be replaced by the chip id.
|
||||
#define OTA_STARTUP_DELAY 10 // How many seconds to wait at startup. This is useful to prevent being unable to flash OTA by a bug in the code. Set to 0 to disable.
|
||||
|
||||
#define FPS 50
|
||||
#define SHOW_TEXT_DELAY 100
|
||||
|
Reference in New Issue
Block a user