Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. void setup() {
  2. // put your setup code here, to run once:
  3. pinMode(12, OUTPUT);
  4. pinMode(11, INPUT);
  5. pinMode(10, OUTPUT);
  6. pinMode(15, INPUT);
  7. pinMode(8, OUTPUT);
  8. pinMode(21, INPUT);
  9. }
  10.  
  11. void loop() {
  12. // put your main code here, to run repeatedly:
  13. if(digitalRead(11) == HIGH){
  14. digitalWrite(13,HIGH);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement