Testing:
Sapmple Code for Testing:
const int LED1 = 1;
const int LED2 = 2;
const int LED3 = 3;
const int LED4 = 4;
const int LED5 = 5;
const int LED6 = 6;
const int LED7 = 7;
const int LED8 = 8;
const int LED9 = 9;
const int LED10 = 10;
const int LED11 = 11;
const int LED12 = 12;
const int LED13 = A6;
const int LED14 = A7;
const int LEDA = A0;
const int LEDB = A1;
const int LEDC = A2;
const int LEDD = A3;
const int LEDE = A4;
const int LEDF = A5;
const int brightness = 150;
void setup() {
Serial.begin(9600);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
pinMode(LED5, OUTPUT);
pinMode(LED6, OUTPUT);
pinMode(LED7, OUTPUT);
pinMode(LED8, OUTPUT);
pinMode(LED9, OUTPUT);
pinMode(LED10, OUTPUT);
pinMode(LED11, OUTPUT);
pinMode(LED12, OUTPUT);
pinMode(LED13, OUTPUT);
pinMode(LED14, OUTPUT);
pinMode(LEDA, OUTPUT);
pinMode(LEDB, OUTPUT);
pinMode(LEDC, OUTPUT);
pinMode(LEDD, OUTPUT);
pinMode(LEDE, OUTPUT);
pinMode(LEDF, OUTPUT);
}
void loop() {
verticleBlink(50);
//reset();
//trunOn(5,2);
}
void verticleBlink(int speed){
for(int i=1; i<7 10:="" 11:="" 12:="" 13:="" 14:="" 1:="" 2:="" 3:="" 4:="" 5:="" 6:="" 7:="" 8:="" 9:="" analogwrite="" break="" brightness="" case="" code="" delay="" digitalwrite="" end="" erial.println="" for="" high="" i="" int="" j="" led="" line="" low="" reset="" speed-10="" speed="" switch="" trunon="" void="">7>
No comments:
Post a Comment