more impactful brightness changes
This commit is contained in:
parent
9178984696
commit
5d46b187ca
@ -38,7 +38,7 @@ void Hanglamp::nextColor(){
|
|||||||
setColor(colorTable[this->colorIndex]);
|
setColor(colorTable[this->colorIndex]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hanglamp::setBrightness(char brightness){
|
void Hanglamp::setBrightness(int brightness){
|
||||||
uint8_t newBrightness =
|
uint8_t newBrightness =
|
||||||
brightness < 0 ? 0 :
|
brightness < 0 ? 0 :
|
||||||
brightness > 255 ? 255 :
|
brightness > 255 ? 255 :
|
||||||
|
|||||||
@ -9,7 +9,7 @@ class Hanglamp {
|
|||||||
public:
|
public:
|
||||||
Hanglamp();
|
Hanglamp();
|
||||||
void setup();
|
void setup();
|
||||||
void setBrightness(char brightness);
|
void setBrightness(int brightness);
|
||||||
void adjustBrightness(int add);
|
void adjustBrightness(int add);
|
||||||
void nextColor();
|
void nextColor();
|
||||||
void controlsCallback(ControlEvent event);
|
void controlsCallback(ControlEvent event);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user