Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. int PORT = 8;
  2. int BUTTON_PORT = 9;
  3.  
  4. void setup() {
  5. // put your setup code here, to run once:
  6.  
  7. }
  8.  
  9. void loop() {
  10. // put your main code here, to run repeatedly:
  11. if (digitalRead(BUTTON_PORT))
  12. {
  13. digitalWrite(PORT, HIGH);
  14. } else {
  15. digitalWrite(PORT, LOW);
  16. }
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement