arduino jumper programmieren

Solutions on MaxInterview for arduino jumper programmieren by the best coders in the world

showing results for - "arduino jumper programmieren"
Abel
19 Oct 2017
1const byte jumperPin1 = 12;
2const byte jumperPin2 = 9;
3
4void setup() {
5  pinMode(jumperPin1, INPUT_PULLUP);
6  pinMode(jumperPin2, INPUT_PULLUP);
7  Serial.begin(9600);
8}
9
10void loop() {
11
12 if (digitalRead(jumperPin1) == 0)
13  {
14    Serial.println("BLAU");
15  }
16  
17 if (digitalRead(jumperPin2) == 0)
18  {
19    Serial.println("ROT");
20  }
21
22}
23