We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c2f7af commit ac54694Copy full SHA for ac54694
1 file changed
color_touch_pendant/color_touch_pendant.ino
@@ -22,7 +22,7 @@ int COLORCHANGE = 50;
22
int BRIGHTNESS = 110;
23
24
// Calibrating your capacitive touch sensitivity: Change this variable to something between your capacitive touch serial readouts for on and off
25
-int touch = 850;
+int touch = 650;
26
27
long oldState = 0;
28
@@ -71,7 +71,9 @@ void checkpress() {
71
HUE=0;}
72
Gradient();
73
}
74
-
+// if (HUE==250) {
75
+// dark();
76
+// }
77
else {
78
79
@@ -126,3 +128,12 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex)
126
128
127
129
130
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