Advertisement
asselinpaul

RFID Spoofer LED test

Jan 3rd, 2012
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.59 KB | None | 0 0
  1. /*
  2.   Blink
  3.   Turns on an LED on for one second, then off for one second, repeatedly.
  4.  
  5.   This example code is in the public domain.
  6.  */
  7.  
  8. void setup() {                
  9.   // initialize the digital pin as an output.
  10.   // Pin 13 has an LED connected on most Arduino boards:
  11.   pinMode(13, OUTPUT);
  12.   pinMode(9, OUTPUT);
  13.   pinMode(0, OUTPUT);
  14.   pinMode(1, OUTPUT);
  15.   pinMode(2, OUTPUT);
  16.   pinMode(3, OUTPUT);
  17. }
  18.  
  19. void loop() {
  20.   digitalWrite(13, HIGH);   // set the LED on
  21.   delay(1000);              // wait for a second
  22.   digitalWrite(13, LOW);    // set the LED off
  23.   delay(1000);              // wait for a second
  24.  
  25.    digitalWrite(9, HIGH);   // set the LED on
  26.   delay(1000);              // wait for a second
  27.   digitalWrite(9, LOW);    // set the LED off
  28.   delay(1000);              // wait for a second
  29.  
  30.    digitalWrite(0, HIGH);   // set the LED on
  31.   delay(1000);              // wait for a second
  32.   digitalWrite(0, LOW);    // set the LED off
  33.   delay(1000);              // wait for a second
  34.  
  35.    digitalWrite(1, HIGH);   // set the LED on
  36.   delay(1000);              // wait for a second
  37.   digitalWrite(1, LOW);    // set the LED off
  38.   delay(1000);              // wait for a second
  39.  
  40.    digitalWrite(2, HIGH);   // set the LED on
  41.   delay(1000);              // wait for a second
  42.   digitalWrite(2, LOW);    // set the LED off
  43.   delay(1000);              // wait for a second
  44.  
  45.    digitalWrite(3, HIGH);   // set the LED on
  46.   delay(1000);              // wait for a second
  47.   digitalWrite(3, LOW);    // set the LED off
  48.   delay(1000);              // wait for a second
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement