Skip to content

Commit f3890f8

Browse files
committed
Delete not used private API 'ledBlink'.
1 parent 0026651 commit f3890f8

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/lib/display/Backlight.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ void Backlight::init()// configure rgb led function
134134
writeByte(IS31FL3194_ADDRESS, 0x32, 0xFF); // Max power on led R (OUT 3)
135135
}
136136

137-
void Backlight::ledBlink(RGBColors color, uint32_t duration)
138-
{
139-
setColor(color);
140-
delay(duration);
141-
setColor(off);
142-
}
143-
144137
void Backlight::writeByte(uint8_t address, uint8_t subAddress, uint8_t data)
145138
{
146139
Wire.beginTransmission(address);

src/lib/display/Backlight.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,23 @@ enum RGBColors {
155155

156156
class Backlight
157157
{
158-
public:
159-
Backlight() {};
158+
public:
159+
160+
Backlight() { }
160161

161162
void begin();
162163
void end();
163164
void setColor(RGBColors color);
164165
void setColor(uint8_t blue, uint8_t green, uint8_t red);
165166
uint8_t getChipID();
166167

168+
167169
private:
170+
168171
void init();
169172
void reset();
170173
void powerDown();
171174
void powerUp();
172-
void ledBlink(RGBColors color, uint32_t duration);
173175
void writeByte(uint8_t address, uint8_t subAddress, uint8_t data);
174176
uint8_t readByte(uint8_t address, uint8_t subAddress);
175177

0 commit comments

Comments
 (0)