Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Codigo Luz Led
#include <Adafruit_NeoPixel.h> #define PIN 6 #define NUMPIXELS 4 Adafruit_NeoPixel tira = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 100 // int rele = 13; void setup(){ //Rele pinMode(rele, OUTPUT); //Tiras Led digitalWrite(rele, HIGH);//activar el rele para alimentar las tiras. tira.begin(); tira.clear(); tira.show(); delay(1000); } void loop() { //Tiras Led tira.setBrightness(100); //Intensidad de brillo for (int i = 0; i < NUMPIXELS; i++) { tira.setPixelColor(i, 255, 0, 0); //Color del led en Rojo tira.show(); delay(DELAYVAL); //Tiempo de encendido entre led de la tira } delay (5000);//Tiempo de encendido de la tira // apaga la tira for (int i = 0; i < NUMPIXELS; i++) { tira.setPixelColor(i, 0, 0, 0); tira.show(); delay(DELAYVAL); } }
run
|
edit
|
history
|
help
0
remove_copy_if-30-Seconds-of-C++
asa
maximum nights you can accommodate
cref
ForwardLiceSplice
CountingSort
LALALALALALLLLAAA
runtime template mode processor
stlsizeof.cc
TupleTel