Created
August 17, 2019 20:12
-
-
Save ArduinoDiscordBot/69f5d54702818a59f0831d47ea5c6832 to your computer and use it in GitHub Desktop.
Code by kemoallah#8245 - Sat Aug 17 2019 20:12:05 GMT+0000 (Coordinated Universal Time)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 3 | |
#define NUMPIXELS 22 | |
Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000) | |
clock_prescale_set(clock_div_1); | |
#endif | |
strip.begin(); | |
void loop() { | |
strip.clear(); | |
int individualPixels[22]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21}; | |
strip.setPixelColor( 0, 0, 0, 255); | |
strip.setPixelColor( 1, 0, 0, 255); | |
strip.setPixelColor( 2, 0, 0, 255); | |
strip.setPixelColor( 3, 0, 0, 255); | |
strip.setPixelColor( 4, 0, 0, 255); | |
strip.setPixelColor( 5, 0, 0, 255); | |
strip.setPixelColor( 6, 0, 0, 255); | |
strip.setPixelColor( 7, 0, 0, 255); | |
strip.setPixelColor( 8, 0, 0, 255); | |
strip.setPixelColor( 9, 0, 0, 255); | |
strip.setPixelColor( 10, 0, 0, 255); | |
strip.setPixelColor( 11, 0, 0, 255); | |
strip.setPixelColor( 12, 0, 0, 255); | |
strip.setPixelColor( 13, 0, 0, 255); | |
strip.setPixelColor( 14, 0, 0, 255); | |
strip.setPixelColor( 15, 0, 0, 255); | |
strip.setPixelColor( 16, 0, 0, 255); | |
strip.setPixelColor( 17, 0, 0, 255); | |
strip.setPixelColor( 18, 0, 0, 255); | |
strip.setPixelColor( 19, 0, 0, 255); | |
strip.setPixelColor( 20, 0, 0, 255); | |
strip.setPixelColor( 21, 0, 0, 255); | |
//ONE | |
individualPixels[1]=1;//IT IS | |
individualPixels[10]=1;//ONE | |
individualPixels[22]=1;//OCLOCK | |
delay(5000); | |
individualPixels[22]=0;//OCLOCK | |
individualPixels[5]=1;//FIVE | |
individualPixels[7]=1;//MINUTES | |
individualPixels[9]=1;//PAST | |
delay(5000); | |
individualPixels[5]=0;//FIVE | |
individualPixels[2]=1;//TEN | |
individualPixels[7]=1;//MINUTES | |
delay(5000); | |
individualPixels[3]=1;//QUARTER | |
and more i cant send it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment