کد:int RelayPin; int Time; void setup() { Serial.begin(9600); while (!Serial) { } } void loop() { while (Serial.available() < 4); //wait until there are 3 bytes in the buffer { } RelayPin = Serial.read(); Time = Serial.read(); Time += Serial.read(); digitalWrite(RelayPin)=LOW; delay(Time); digitalWrite(RelayPin)=HIGH; }