Skip to content

Commit ac54694

Browse files
committed
Replacing code
Replacing the incorrect code with the right code
1 parent 1c2f7af commit ac54694

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

color_touch_pendant/color_touch_pendant.ino

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int COLORCHANGE = 50;
2222
int BRIGHTNESS = 110;
2323

2424
// Calibrating your capacitive touch sensitivity: Change this variable to something between your capacitive touch serial readouts for on and off
25-
int touch = 850;
25+
int touch = 650;
2626

2727
long oldState = 0;
2828

@@ -71,7 +71,9 @@ void checkpress() {
7171
HUE=0;}
7272
Gradient();
7373
}
74-
74+
// if (HUE==250) {
75+
// dark();
76+
// }
7577
else {
7678
Gradient();
7779

@@ -126,3 +128,12 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex)
126128
}
127129
}
128130

131+
void dark()
132+
{
133+
for(int i = 0; i < NUM_LEDS; i++) {
134+
leds[i] = CRGB::Black;
135+
FastLED.show();
136+
delay(20);
137+
}
138+
}
139+

0 commit comments

Comments
 (0)