byte LED_13 = 13;
byte LED_12 = 12;
int tnd = 500;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(LED_13, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_13, HIGH);
delay(tnd);
digitalWrite(LED_13,LOW);
delay(tnd);
static char comm=0;
if(Serial.available()>0) {
comm = Serial.read();
while(Serial.available()>0)Serial.read();
}
if(comm == '1'){
digitalWrite(LED_12, HIGH);
}
if(comm == '2'){
digitalWrite(LED_12, LOW);
}
}
nano:12
nano:11
nano:10
nano:9
nano:8
nano:7
nano:6
nano:5
nano:4
nano:3
nano:2
nano:GND.2
nano:RESET.2
nano:0
nano:1
nano:13
nano:3.3V
nano:AREF
nano:A0
nano:A1
nano:A2
nano:A3
nano:A4
nano:A5
nano:A6
nano:A7
nano:5V
nano:RESET
nano:GND.1
nano:VIN
nano:12.2
nano:5V.2
nano:13.2
nano:11.2
nano:RESET.3
nano:GND.3
led1:A
led1:C