void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println();
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available())
{
char c = Serial.read();
if(c == '1')
{
digitalWrite(13,HIGH);
Serial.println("Led Yandı");
}
else if(c == '0')
{
digitalWrite(13,LOW);
Serial.println("Led Söndü");
}
}
}