-
Notifications
You must be signed in to change notification settings - Fork 3
/
define.h
41 lines (31 loc) · 884 Bytes
/
define.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef DEFINE_H
#define DEFINE_H
#include <FastLED.h>
#define DATA_PIN 12 // pins tested so far on the Feather ESP32: 13, 12, 27, 33, 15, 32, 14, SCL
#define LED_TYPE WS2812B
#define COLOR_ORDER RGB
#define BRIGHTNESS 128
#define NUM_COLS 5
#define NUM_ROWS 30
#define NUM_LEDS (NUM_COLS * NUM_ROWS)
#define MAX_POWER_MILLIAMPS 60000
//CRGB leds[NUM_LEDS];
// FastLED with RGBW
CRGBW leds[NUM_LEDS];
CRGB *ledsRGB = (CRGB *) &leds[0];
#define MAX_PATTERNS 9
#define MAX_PALETTES 9
uint8_t hues[NUM_LEDS];
static uint8_t patternIndex = 0;
static uint8_t paletteIndex = 0;
uint8_t g_brightness = BRIGHTNESS;
uint8_t g_hueTempo = 0;
uint8_t g_hueShift = 0;
#define EEPROM_SIZE 5
#define EEPROM_BRIGHTNESS 0
#define EEPROM_GAIN 1
#define EEPROM_SQUELCH 2
#define EEPROM_PATTERN 3
#define EEPROM_DISPLAY_TIME 4
bool autoChangePatterns = false;
#endif