-
Notifications
You must be signed in to change notification settings - Fork 0
/
sub_led.h
37 lines (33 loc) · 912 Bytes
/
sub_led.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
#ifndef SUB_LED_H
#define SUB_LED_H
#include <SPI.h>
#include <NeoPixelBrightnessBus.h>
#include <Preferences.h>
extern struct RgbColor black;
extern struct RgbColor white;
extern struct RgbColor dwhite;
extern struct RgbColor red;
extern struct RgbColor yellow;
extern struct RgbColor orange;
extern struct RgbColor green;
extern struct RgbColor blue;
extern struct RgbColor wblue;
extern struct RgbColor cyan;
void led_calccont(int confcont);
void led_blink(int r, int g, int b);
void led_blinkudp();
void led_drawip(int d);
void led_drawvcc();
void led_brgn();
void led_brgn(int brgn);
void led_init();
#ifndef ARDUINO_ESP32C3_DEV
void led_setpx(int i, RgbColor &color, bool flip);
#endif
void led_setpx(int i, RgbColor &color);
void led_setpx(int i, RgbColor &color, int str);
void led_setpxall(int i, RgbColor &color);
void led_show();
void led_clear();
void led_clearto(char r, char g, char b);
#endif