Advertisement
RuiViana

Untitled

Oct 19th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int led=13;
  2. int x;
  3. void setup(){
  4.  
  5. pinMode(led, OUTPUT);
  6. Serial.begin(9600);
  7. }
  8.  
  9. void loop()
  10. {
  11. for (x=0; x < 14; x++){
  12. Serial.println(x);
  13. delay(1000);
  14. if(x >= 10)
  15. {
  16. digitalWrite(led,HIGH);
  17. while(1);
  18. }
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement