Advertisement
Johanneszockt1

Untitled

Jun 27th, 2023
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #define BAUD 9600
  2.  
  3. void setup() {
  4. // put your setup code here, to run once:
  5. Serial.begin(BAUD);
  6. Serial.println();
  7.  
  8. pinMode(2,INPUT);
  9. }
  10.  
  11. void loop() {
  12. // put your main code here, to run repeatedly:
  13. Serial.println(digitalRead(2));
  14. delay(100);
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement