Separated and cleaned settings area

This commit is contained in:
David Madison 2016-12-21 11:19:03 -05:00
parent fb6d134526
commit 3a9b6157d0
1 changed files with 15 additions and 9 deletions

View File

@ -3,17 +3,23 @@
#include <FastLED.h> #include <FastLED.h>
// --------------------------------------------------------------------
// -- General Settings
#define NUM_LEDS 80 // strip length #define NUM_LEDS 80 // strip length
#define LED_PIN 6 // Arduino data output pin #define LED_PIN 6 // Arduino data output pin
#define BRIGHTNESS 255 // maximum brightness #define BRIGHTNESS 255 // maximum brightness
#define SPEED 115200 // serial port speed, max available
// --- Serial Settings
#define SPEED 115200 // serial port speed, max available
static const unsigned long // time before LEDs are shut off, if no data
serialTimeout = 150000; // 150 seconds
// -- Optional Settings (Uncomment to add)
//#define GROUND_PIN 10 // additional grounding pin (optional) //#define GROUND_PIN 10 // additional grounding pin (optional)
//#define CALIBRATE // uncomment to set calibration mode //#define CALIBRATE // uncomment to set calibration mode
// If no serial data is received for a while, the LEDs are shut off // --------------------------------------------------------------------
// automatically. Value in milliseconds.
static const unsigned long serialTimeout = 150000; // 150 seconds
CRGB leds[NUM_LEDS]; CRGB leds[NUM_LEDS];
uint8_t * ledsRaw = (uint8_t *)leds; uint8_t * ledsRaw = (uint8_t *)leds;