more impactful brightness changes
This commit is contained in:
+1
-1
@@ -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 :
|
||||||
|
|||||||
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user