20171016 - 40423226/notebook GitHub Wiki

void setup() { pinMode(13, INPUT); pinMode(9, OUTPUT); pinMode(8, OUTPUT); digitalWrite(13,LOW); }

void loop(){ if(digitalRead(8)==LOW){ digitalWrite(13, HIGH); } else( ) if(digitalRead(9==HIGH){ digtalWrite(13, LOW); } else( ) }