Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int switchPin = 8;
- void setup() {
- // put your setup code here, to run once:
- pinMode(switchPin,INPUT_PULLUP);
- Serial.begin(9600);
- }
- void loop() {
- if (digitalRead(switchPin) == LOW) {
- Serial.println("Penis drin");
- } else
- {
- Serial.println("Penis raus");
- }
- delay(250);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement