#include
const byte rxPin = PB4;
const byte txPin = PB3;
// set up a new serial object
SoftwareSerial mySerial (rxPin, txPin);
void setup() {
mySerial.begin(4800);
pinMode(PB0, OUTPUT);
}
void loop() {
if (mySerial.available()) {
char c = mySerial.read();
//condition 1
if (c=='0') {
mySerial.write('0');
digitalWrite(PB0, HIGH);
delay(200);
digitalWrite(PB0, LOW);
delay(200);
digitalWrite(PB0, HIGH);
delay(200);
digitalWrite(PB0, LOW);
delay(200);
}
}
}