Both sides previous revision Previous revision | |||
fabricademy2017:students:anamaria.martinlopez:week12 [2018/06/20 14:16] anamaria.martinlopez |
fabricademy2017:students:anamaria.martinlopez:week12 [2018/06/20 14:22] anamaria.martinlopez |
||
---|---|---|---|
Line 171: | Line 171: | ||
strip. begin();\\ | strip. begin();\\ | ||
strip. setBrightness(100); // 100/255 brightness ( about 40%) //brillo de 0 a 255\\ | strip. setBrightness(100); // 100/255 brightness ( about 40%) //brillo de 0 a 255\\ | ||
- | strip. show(); // Initialize all pixels to ' off'\\ | + | strip. show(); // Initialize all pixels to ' off'// |
- | } void loop( ) {\\ | + | |
+ | \\ | ||
+ | //} void loop( ) {\\ | ||
delay (500);\\ | delay (500);\\ | ||
strip. setPixelColor(0,244,244,244); //primer led\\ | strip. setPixelColor(0,244,244,244); //primer led\\ | ||
Line 187: | Line 189: | ||
delay (500); strip. setPixelColor(3,0,0,0); //primer led\\ | delay (500); strip. setPixelColor(3,0,0,0); //primer led\\ | ||
strip.show();\\ | strip.show();\\ | ||
- | delay (500);\\ | + | delay (500); |
+ | |||
+ | \\ | ||
strip. setPixelColor(2,0,0,0); //segundo led\\ | strip. setPixelColor(2,0,0,0); //segundo led\\ | ||
strip.show();\\ | strip.show();\\ |