Stap 13: Programma 1
uitgang voor seriële naar 74hc3742013
Ray McQueen
Gebruikt voor het testen van aangepaste kleur temp display
//
Lege cellen weergeven eerste
//
Testen kleur van elk cijfer
//
Sommige cool knipperen en vervolgens wijzigen
//
Lange hand. Geen tabellen die worden gebruikt in deze.
//
Geen temperatuur wordt weergegeven.
//
Const int blue_data = 13; 74xx374 pin3
Const int red_data = 12; 74xx374 pin3
Const int green_data = 11; 74xx374 pin3
Const int blue_clk3 = 10; blauwe 3e cijfer
Const int blue_clk2 = 9; blauwe 2e cijfer
Const int blue_clk1 = 8; blauwe 1e cijfer
Const int red_clk3 = 7; Rode 3e cijfer
Const int red_clk2 = 6; rode 2e cijfer
Const int red_clk1 = 5; rode 1e cijfer
Const int green_clk3 = 4; groene 3e cijfer
Const int green_clk2 = 3; groene 2e cijfer
Const int green_clk1 = 2; groene 1e cijfer
//
//
//
int Blank = 0; Lege waarden 0
int All_on = 255; Allemaal op 255
int nul = 252; Nul
int One = 12; Een
int twee = 182; Twee
int drie = 158; Drie
int vier = 78; Vier
int vijf = 218; Vijf
int zes = 122; Zes
int zeven = 140; Zeven
int acht = 254; Acht
int negen = 206; Negen
int DP = 1; Decimaal
int Top = 128; Middenboven segment
int Ltop = 64; Linkerkant topsegment
int Lbot = 32; Linker kant onder segment
int Bot = 16; Onderste segment
int Rbot = 8; Rechterkant onder segment
int Rtop = 4; Rechterkant topsegment
int midden = 2; Middensegment
//
int val = 500; gebruikt voor de vertraging
int val2 = 200; //
//
VOID Setup {}
pinMode (blue_data, OUTPUT); pin12 definiëren als output
pinMode (red_data, OUTPUT); pin12 definiëren als output
pinMode (green_data, OUTPUT); pin12 definiëren als output
pinMode (blue_clk3, OUTPUT); pin12 definiëren als output
pinMode (blue_clk2, OUTPUT); pin12 definiëren als output
pinMode (blue_clk1, OUTPUT); pin12 definiëren als output
pinMode (red_clk3, OUTPUT); pin12 definiëren als output
pinMode (red_clk2, OUTPUT); pin12 definiëren als output
pinMode (red_clk1, OUTPUT); pin12 definiëren als output
pinMode (green_clk3, OUTPUT); pin12 definiëren als output
pinMode (green_clk2, OUTPUT); pin12 definiëren als output
pinMode (green_clk1, OUTPUT); pin12 definiëren als output
//
}
void loop {}
//
LEEG VAN ALLE CIJFERS
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
//
shiftOut (red_data, red_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Blank); //
shiftOut (red_data, red_clk1, LSBFIRST, Blank); //
//
shiftOut (green_data, green_clk3, LSBFIRST, Blank); //
shiftOut (green_data, green_clk2, LSBFIRST, Blank); //
shiftOut (green_data, green_clk1, LSBFIRST, Blank); //
//
delay(val); de hoeveelheid tijd opgeslagen in val vertraging
//
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Beginnen met blauw
//
//
shiftOut (blue_data, blue_clk3, LSBFIRST, nul); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, nul); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, nul); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, One); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, One); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, One); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, twee); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, twee); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, twee); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, drie); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, drie); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, drie); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, vier); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, vier); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, vier); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, vijf); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, vijf); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, vijf); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, zes); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, zes); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, zes); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, zeven); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, zeven); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, zeven); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, acht); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, acht); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, acht); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, negen); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, negen); //
delay(val); //
shiftOut (blue_data, blue_clk1, LSBFIRST, negen); //
delay(val); //
//
shiftOut (blue_data, blue_clk3, LSBFIRST, DP); //
delay(val); //
shiftOut (blue_data, blue_clk2, LSBFIRST, DP); //
delay(val); //
//
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
delay(val); //
//
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Rood
//
//
shiftOut (red_data, red_clk3, LSBFIRST, nul); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, nul); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, nul); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, One); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, One); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, One); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, twee); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, twee); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, twee); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, drie); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, drie); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, drie); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, vier); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, vier); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, vier); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, vijf); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, vijf); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, vijf); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, zes); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, zes); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, zes); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, zeven); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, zeven); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, zeven); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, acht); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, acht); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, acht); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, negen); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, negen); //
delay(val); //
shiftOut (red_data, red_clk1, LSBFIRST, negen); //
delay(val); //
//
shiftOut (red_data, red_clk3, LSBFIRST, DP); //
delay(val); //
shiftOut (red_data, red_clk2, LSBFIRST, DP); //
delay(val); //
//
//
shiftOut (red_data, red_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Blank); //
shiftOut (red_data, red_clk1, LSBFIRST, Blank); //
delay(val); //
//
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Groen
//
//
shiftOut (green_data, green_clk3, LSBFIRST, nul); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, nul); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, nul); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, One); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, One); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, One); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, twee); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, twee); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, twee); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, drie); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, drie); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, drie); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, vier); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, vier); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, vier); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, vijf); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, vijf); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, vijf); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, zes); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, zes); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, zes); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, zeven); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, zeven); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, zeven); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, acht); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, acht); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, acht); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, negen); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, negen); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, negen); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, DP); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, DP); //
delay(val); //
//
//
shiftOut (green_data, green_clk3, LSBFIRST, Blank); //
shiftOut (green_data, green_clk2, LSBFIRST, Blank); //
shiftOut (green_data, green_clk1, LSBFIRST, Blank); //
delay(val); //
//
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Geel
//
//
shiftOut (green_data, green_clk3, LSBFIRST, nul); //
shiftOut (red_data, red_clk3, LSBFIRST, nul); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, nul); //
shiftOut (red_data, red_clk2, LSBFIRST, nul); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, nul); //
shiftOut (red_data, red_clk1, LSBFIRST, nul); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, One); //
shiftOut (red_data, red_clk3, LSBFIRST, One); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, One); //
shiftOut (red_data, red_clk2, LSBFIRST, One); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, One); //
shiftOut (red_data, red_clk1, LSBFIRST, One); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, twee); //
shiftOut (red_data, red_clk3, LSBFIRST, twee); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, twee); //
shiftOut (red_data, red_clk2, LSBFIRST, twee); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, twee); //
shiftOut (red_data, red_clk1, LSBFIRST, twee); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, drie); //
shiftOut (red_data, red_clk3, LSBFIRST, drie); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, drie); //
shiftOut (red_data, red_clk2, LSBFIRST, drie); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, drie); //
shiftOut (red_data, red_clk1, LSBFIRST, drie); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, vier); //
shiftOut (red_data, red_clk3, LSBFIRST, vier); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, vier); //
shiftOut (red_data, red_clk2, LSBFIRST, vier); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, vier); //
shiftOut (red_data, red_clk1, LSBFIRST, vier); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, vijf); //
shiftOut (red_data, red_clk3, LSBFIRST, vijf); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, vijf); //
shiftOut (red_data, red_clk2, LSBFIRST, vijf); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, vijf); //
shiftOut (red_data, red_clk1, LSBFIRST, vijf); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, zes); //
shiftOut (red_data, red_clk3, LSBFIRST, zes); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, zes); //
shiftOut (red_data, red_clk2, LSBFIRST, zes); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, zes); //
shiftOut (red_data, red_clk1, LSBFIRST, zes); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, zeven); //
shiftOut (red_data, red_clk3, LSBFIRST, zeven); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, zeven); //
shiftOut (red_data, red_clk2, LSBFIRST, zeven); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, zeven); //
shiftOut (red_data, red_clk1, LSBFIRST, zeven); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, acht); //
shiftOut (red_data, red_clk3, LSBFIRST, acht); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, acht); //
shiftOut (red_data, red_clk2, LSBFIRST, acht); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, acht); //
shiftOut (red_data, red_clk1, LSBFIRST, acht); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, negen); //
shiftOut (red_data, red_clk3, LSBFIRST, negen); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, negen); //
shiftOut (red_data, red_clk2, LSBFIRST, negen); //
delay(val); //
shiftOut (green_data, green_clk1, LSBFIRST, negen); //
shiftOut (red_data, red_clk1, LSBFIRST, negen); //
delay(val); //
//
shiftOut (green_data, green_clk3, LSBFIRST, DP); //
shiftOut (red_data, red_clk3, LSBFIRST, DP); //
delay(val); //
shiftOut (green_data, green_clk2, LSBFIRST, DP); //
shiftOut (red_data, red_clk2, LSBFIRST, DP); //
delay(val); //
//
//
shiftOut (green_data, green_clk1, LSBFIRST, Blank); //
shiftOut (red_data, red_clk1, LSBFIRST, Blank); //
shiftOut (green_data, green_clk2, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Blank); //
shiftOut (green_data, green_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk3, LSBFIRST, Blank); //
delay(val); //
//
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Funky knipperen voor de lol.
Blauw in een cirkel
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
delay(val2); //
//
shiftOut (blue_data, blue_clk1, LSBFIRST, Ltop); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Lbot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
delay(val2); //
//
shiftOut (blue_data, blue_clk1, LSBFIRST, Bot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Bot); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Bot); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
delay(val2); //
//
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Rbot); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Rtop); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
delay(val2); //
//
//
// *********
//
CONTROLEER ELKE KLEUR IN ELK CIJFER
Funky knipperen voor de lol.
Blauw in een cirkel
Rood een kleine cirkel
Groen in een kleine kring
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Top); //
shiftOut (red_data, red_clk2, LSBFIRST, Top); //
shiftOut (green_data, green_clk1, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Ltop); //
shiftOut (green_data, green_clk1, LSBFIRST, Ltop); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Top); //
shiftOut (red_data, red_clk2, LSBFIRST, Lbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Lbot); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Bot); //
shiftOut (green_data, green_clk1, LSBFIRST, Bot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Top); //
shiftOut (red_data, red_clk2, LSBFIRST, Rbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Rbot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Rtop); //
shiftOut (green_data, green_clk1, LSBFIRST, Rtop); //
delay(val2); //
//
shiftOut (blue_data, blue_clk1, LSBFIRST, Ltop); //
shiftOut (red_data, red_clk2, LSBFIRST, Top); //
shiftOut (green_data, green_clk1, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Ltop); //
shiftOut (green_data, green_clk1, LSBFIRST, Ltop); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Lbot); //
shiftOut (red_data, red_clk2, LSBFIRST, Lbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Lbot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Bot); //
shiftOut (green_data, green_clk1, LSBFIRST, Bot); //
delay(val2); //
//
shiftOut (blue_data, blue_clk1, LSBFIRST, Bot); //
shiftOut (red_data, red_clk2, LSBFIRST, Rbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Rbot); //
delay(val2); //
shiftOut (blue_data, blue_clk1, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Rtop); //
shiftOut (green_data, green_clk1, LSBFIRST, Rtop); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Bot); //
shiftOut (red_data, red_clk2, LSBFIRST, Top); //
shiftOut (green_data, green_clk1, LSBFIRST, Top); //
delay(val2); //
shiftOut (blue_data, blue_clk2, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Ltop); //
shiftOut (green_data, green_clk1, LSBFIRST, Ltop); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Bot); //
shiftOut (red_data, red_clk2, LSBFIRST, Lbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Lbot); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Bot); //
shiftOut (green_data, green_clk1, LSBFIRST, Bot); //
delay(val2); //
//
//
shiftOut (blue_data, blue_clk3, LSBFIRST, Rbot); //
shiftOut (red_data, red_clk2, LSBFIRST, Rbot); //
shiftOut (green_data, green_clk1, LSBFIRST, Rbot); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
shiftOut (red_data, red_clk2, LSBFIRST, Rtop); //
shiftOut (green_data, green_clk1, LSBFIRST, Rtop); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Rtop); //
delay(val2); //
shiftOut (blue_data, blue_clk3, LSBFIRST, Blank); //
delay(val2); //
//
//
//
}