File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,6 @@ void Backlight::init()// configure rgb led function
134
134
writeByte (IS31FL3194_ADDRESS, 0x32 , 0xFF ); // Max power on led R (OUT 3)
135
135
}
136
136
137
- void Backlight::ledBlink (RGBColors color, uint32_t duration)
138
- {
139
- setColor (color);
140
- delay (duration);
141
- setColor (off);
142
- }
143
-
144
137
void Backlight::writeByte (uint8_t address, uint8_t subAddress, uint8_t data)
145
138
{
146
139
Wire.beginTransmission (address);
Original file line number Diff line number Diff line change @@ -155,21 +155,23 @@ enum RGBColors {
155
155
156
156
class Backlight
157
157
{
158
- public:
159
- Backlight () {};
158
+ public:
159
+
160
+ Backlight () { }
160
161
161
162
void begin ();
162
163
void end ();
163
164
void setColor (RGBColors color);
164
165
void setColor (uint8_t blue, uint8_t green, uint8_t red);
165
166
uint8_t getChipID ();
166
167
168
+
167
169
private:
170
+
168
171
void init ();
169
172
void reset ();
170
173
void powerDown ();
171
174
void powerUp ();
172
- void ledBlink (RGBColors color, uint32_t duration);
173
175
void writeByte (uint8_t address, uint8_t subAddress, uint8_t data);
174
176
uint8_t readByte (uint8_t address, uint8_t subAddress);
175
177
You can’t perform that action at this time.
0 commit comments