//Nadino Slave Board #include int data; #define led 5 SoftwareSerial Nadino (10,9);//Rx, Tx void setup() { // put your setup code here, to run once: Nadino.begin(9600); //Serial.begin(9600); pinMode(led, OUTPUT); } void loop() { if(Nadino.available()){ data=Nadino.read(); if (data == '1'){ blink(); digitalWrite(led, LOW); } } // put your main code here, to run repeatedly: } void blink(){ for(int x=0; x<3;x++){ digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); delay(1000); } }