Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const int but1=4;
  2. int ReadVal1;
  3.  
  4. void setup() {
  5. // put your setup code here, to run once:
  6. pinMode (but1, INPUT);
  7. Serial.begin (9600);
  8.  
  9. }
  10.  
  11.  
  12. void loop() {
  13. // put your main code here, to run repeatedly:
  14. ReadVal1 = digitalRead(but1);
  15.  
  16. Serial.println(ReadVal1);
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement