Guest User

Untitled

a guest
Dec 10th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. int relay = 13; // Plug the relay into Digital Pin 13
  2.  
  3. void setup() {
  4. pinMode(relay, OUTPUT);
  5. }
  6.  
  7. void loop() {
  8. digitalWrite(relay, HIGH); // Turn the relay on
  9. delay(1000); // Wait 1 second
  10. digitalWrite(relay, LOW); // Turn the relay Off
  11. delay(1000); // Wait 1 second
  12. }
Add Comment
Please, Sign In to add comment