Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/8450086391930b2e667b1c6d68065db9 to your computer and use it in GitHub Desktop.
Save esmarr58/8450086391930b2e667b1c6d68065db9 to your computer and use it in GitHub Desktop.
#include <Adafruit_NeoPixel.h>
#include <OneWire.h>
Adafruit_NeoPixel pixels(1, 21, NEO_GRB + NEO_KHZ800);
void setup() {
pinMode(46, OUTPUT);
pixels.begin();
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(46, LOW);
pixels.clear();
pixels.setPixelColor(0, pixels.Color(0, 0, 255));
pixels.show();
delay(1000);
pixels.clear();
pixels.setPixelColor(0, pixels.Color(00, 255, 0));
pixels.show();
delay(1000);
pixels.clear();
pixels.setPixelColor(0, pixels.Color(255, 0, 0));
pixels.show();
delay(1000);
// contador++;
digitalWrite(46, HIGH);
delay(1000);
Serial.println("Hola");
//delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment