Search
 
SCRIPT & CODE EXAMPLE
 

CPP

arduino jumper programmieren

const byte jumperPin1 = 12;
const byte jumperPin2 = 9;

void setup() {
  pinMode(jumperPin1, INPUT_PULLUP);
  pinMode(jumperPin2, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop() {

 if (digitalRead(jumperPin1) == 0)
  {
    Serial.println("BLAU");
  }
  
 if (digitalRead(jumperPin2) == 0)
  {
    Serial.println("ROT");
  }

}
Comment

PREVIOUS NEXT
Code Example
Cpp :: yearly interest calculator c++ using for loop 
Cpp :: cast unreal c++ 
Cpp :: how to define a node in c++ 
Cpp :: vector übergeben c++ 
Cpp :: cpp console progressbar 
Cpp :: sort in descending order c++ 
Cpp :: Normal Initialisation of 3D Vector 
Cpp :: displaying m images one window opencv c++ 
Cpp :: how to find second smallest element using single loop 
Cpp :: infix to prefix using cpp linked list program 
Cpp :: Configuring an c++ OpenCV project with Cmake 
Cpp :: cast c++ 
Cpp :: C++ Things to Remember 
Cpp :: onactorbeginoverlap c++ 
Cpp :: c++ const shared_ptr 
Cpp :: declare a structer in cpp 
Cpp :: c++ ascii value 
Cpp :: is palindrom 
Cpp :: int to string Using to_string method 
Cpp :: batch to exe 
Cpp :: how to make sound in c++ 
Cpp :: c++ environment setup 
Cpp :: why ostream cannot be constant 
C :: calculate distance between 2 points X Y axis 
C :: how to make a hello world program in c 
C :: C float division 
C :: how to convert string to integer in c 
C :: #![feature]` may not be used on the // stable release channel 
C :: linear search program in c 
C :: read from a file c 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =