Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int led=13;
- int x;
- void setup(){
- pinMode(led, OUTPUT);
- Serial.begin(9600);
- }
- void loop()
- {
- for (x=0; x < 14; x++){
- Serial.println(x);
- delay(1000);
- if(x >= 10)
- {
- digitalWrite(led,HIGH);
- while(1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement