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