Moved serial timeout variable below definitions
This commit is contained in:
parent
4fc9d02d9c
commit
025fecb99b
|
@ -9,6 +9,10 @@
|
||||||
#define BRIGHTNESS 255 // maximum brightness
|
#define BRIGHTNESS 255 // maximum brightness
|
||||||
#define SPEED 115200 // serial port speed, max available
|
#define SPEED 115200 // serial port speed, max available
|
||||||
|
|
||||||
|
// 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;
|
||||||
|
|
||||||
|
@ -34,11 +38,6 @@ static const uint8_t magic[] = {
|
||||||
#define MODE_HEADER 0
|
#define MODE_HEADER 0
|
||||||
#define MODE_DATA 2
|
#define MODE_DATA 2
|
||||||
|
|
||||||
// If no serial data is received for a while, the LEDs are shut off
|
|
||||||
// automatically. This avoids the annoying "stuck pixel" look when
|
|
||||||
// quitting LED display programs on the host computer.
|
|
||||||
static const unsigned long serialTimeout = 150000; // 150 seconds
|
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
pinMode(GROUND_PIN, OUTPUT);
|
pinMode(GROUND_PIN, OUTPUT);
|
||||||
|
|
Loading…
Reference in New Issue