ESPectro32 Library
Library for using ESPectro32 board
 All Classes Functions Variables Enumerations Enumerator Pages
ESPectro32_LedMatrix.h
1 /*
2  * ESPectro32_LedMatrix.h
3  *
4  * Created on: Aug 19, 2017
5  * Author: andri
6  */
7 
8 #ifndef COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_LEDMATRIX_H_
9 #define COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_LEDMATRIX_H_
10 
11 #include <Adafruit_GFX.h>
12 #include <Adafruit_IS31FL3731.h>
13 #include <functional>
14 
15 static const uint8_t PROGMEM LED_MATRIX_EMOTICON_SMILE[] =
16 { B00000000,
17  B01101100,
18  B01101100,
19  B00000000,
20  B01000100,
21  B00111000,
22  B00000000
23 };
24 
25 static const uint8_t PROGMEM LED_MATRIX_EMOTICON_SAD[] =
26 { B00000000,
27  B00101000,
28  B01000100,
29  B00000000,
30  B00000000,
31  B00111000,
32  B01000100,
33  B00000000
34 };
35 
36 static const uint8_t PROGMEM LED_MATRIX_ICON_HEART[] =
37 { B01101100,
38  B11101110,
39  B11111110,
40  B01111100,
41  B00111000,
42  B00010000,
43  B00000000,
44  B00000000
45 };
46 
47 static const uint8_t PROGMEM LED_MATRIX_ICON_HEART_OUTLINE[] =
48 { B01101100,
49  B10101010,
50  B10111010,
51  B01000100,
52  B00101000,
53  B00010000,
54  B00000000,
55  B00000000
56 };
57 
58 static const uint8_t PROGMEM LED_MATRIX_ICON_HEART_SMALL[] =
59 { B00000000,
60  B01101100,
61  B01111100,
62  B00111000,
63  B00010000,
64  B00000000,
65  B00000000,
66  B00000000
67 };
68 
69 //Add your own icon bitmap :)
70 
77 public:
79  virtual ~ESPectro32_LedMatrix();
80  void drawPixel(int16_t x, int16_t y, uint16_t color);
81 };
82 
83 #endif /* COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_LEDMATRIX_H_ */
Definition: Adafruit_IS31FL3731.h:28
The class represents Led Matrix.
Definition: ESPectro32_LedMatrix.h:76