void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode (12,OUTPUT );
pinMode (14,INPUT );
}
void loop() {
int swt = digitalRead (14);
if(swt==1)
{
digitalWrite (12,HIGH );
}
else
{
digitalWrite (14,LOW );
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}