So I really don't know why the programm doesn't work, and all I find in the Internet is to hard to nderstand for me I think
The programm itselve is really simple:
int SchalterZustand1;
int InputPin1;
int Schalter();
void setup() {
Serial.begin(9600);
InputPin1 = 5;
pinMode(28,OUTPUT);
pinMode(InputPin1, INPUT);
}
void loop() {
InputPin1 = 5;
SchalterZustand1 = digitalRead(InputPin1);
Serial.println(SchalterZustand1, DEC);
if(SchalterZustand1 == HIGH){
void Schalter()
}
}
void Schalter() {
digitalWrite(28, HIGH);
}
}
exit status 1
new declaration 'void Schalter()'
I look forward to answers