44//############################################################################
55// ESPARKLE VERSION
66//############################################################################
7- #define ESPARKLE_VERSION "1.0"
7+
8+ #define ESPARKLE_VERSION "1.1"
89
910//############################################################################
1011// WIFI
1112//############################################################################
12- #define ESP_NAME "ESParkle" // ESP8266 host name
1313
14- const WifiAPEntry AP_LIST[] = { // Access points list
14+ // ESP8266 host name
15+ #define ESP_NAME "ESParkle"
16+
17+ // Access points list
18+ const WifiAPEntry AP_LIST[] = {
1519 {"YOUR_SSID_1", "YOUR_PASSPHRASE_1"},
1620 {"YOUR_SSID_2", "YOUR_PASSPHRASE_2"},
1721 {"YOUR_SSID_3", "YOUR_PASSPHRASE_3"}
@@ -20,43 +24,52 @@ const WifiAPEntry AP_LIST[] = {
2024//############################################################################
2125// MQTT
2226//############################################################################
27+
2328#define MQTT_HOST "mXX.cloudmqtt.com"
2429#define MQTT_PORT 12345
2530#define MQTT_USER "YOUR_MQTT_USER"
2631#define MQTT_PASSWORD "YOUR_MQTT_PASSWORD"
2732#define MQTT_IN_TOPIC "esparkle/in"
2833#define MQTT_OUT_TOPIC "esparkle/out"
34+ #define MQTT_BUFF_SIZE 1024
2935
3036//############################################################################
3137// AUDIO
3238//############################################################################
33- #define RANDOM_STREAM_URL "http://www.dummyhost.net/esparkle/esparkle_mp3.php?action=random" // URL of companion PHP script for random MP3
34- #define TTS_PROXY_URL "http://www.dummyhost.net/esparkle/esparkle_tts.php" // URL of companion PHP script for TTS
35- #define TTS_PROXY_USER "YOUR_TTS_PROXY_USER" // HTTP Basic authentication user name for TTS
36- #define TTS_PROXY_PASSWORD "YOUR_TTS_PROXY_PASSWORD" // HTTP Basic authentication password for TTS
3739
38- float defaultGain = .3;
40+ #define RANDOM_STREAM_URL "http://www.dummyhost.net/esparkle/esparkle_mp3.php?action=random" // URL of companion PHP script for random MP3
41+ #define TTS_PROXY_URL "http://www.dummyhost.net/esparkle/esparkle_tts.php" // URL of companion PHP script for TTS
42+ #define TTS_PROXY_USER "YOUR_TTS_PROXY_USER" // HTTP Basic authentication user name for TTS
43+ #define TTS_PROXY_PASSWORD "YOUR_TTS_PROXY_PASSWORD" // HTTP Basic authentication password for TTS
44+
45+ float defaultGain = .3;
3946
4047//############################################################################
4148// LED
4249//############################################################################
43- #define COLOR_ORDER GRB // Set GRB for WS2812B and GBR for APA102
44- #define LED_TYPE WS2812B // APA102, WS2801 or WS2812B
45- #define NUM_LEDS 3 // Number of LEDs
46- uint8_t max_bright = 128; // Default overall brightness
50+
51+ #define COLOR_ORDER GRB // Set GRB for WS2812B and GBR for APA102
52+ #define LED_TYPE WS2812B // APA102, WS2801 or WS2812B
53+ #define NUM_LEDS 7 // Number of LEDs
54+ uint8_t max_bright = 128; // Default overall brightness
4755
4856//############################################################################
4957// MPU
5058//############################################################################
59+
60+ // MPU sensitivity params
5161#define MPU_INTERRUPT_INTERVAL_MS 750
5262#define MPU_MULTITAP_INTERVAL_MS 2000
53- #define MPU_MULTITAP_RESTART 5
5463#define MOTION_DETECTION_THRESHOLD 10
5564#define MOTION_DETECTION_DURATION 5
5665
66+ // Number of taps to trigger ESP restart
67+ #define MPU_MULTITAP_RESTART 5
68+
5769//############################################################################
5870// PINS
5971//############################################################################
72+
6073/* --------+--------------+--------------------------------
6174 * D1 pin ESP-8266 pin Function
6275 * --------+--------------+--------------------------------
0 commit comments