Advertisement
Guest User

Arduino-Blink

a guest
Nov 24th, 2014
210
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2. // In this case, we use A0 as an output.
  3.  
  4. pinMode(A0, OUTPUT);
  5.  
  6. }
  7.  
  8. void loop() {
  9.  
  10. digitalWrite(A0, HIGH);
  11.  
  12. delay(1000); // wait for a second
  13.  
  14. digitalWrite(A0, LOW);
  15.  
  16. delay(1000); }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement