void setup() { } void loop() { a = SerialRead() if (a == 1) { DigitalWrite(13, HIGH) } elseif (a == 2) { DigitalWrite(13, LOW) } Delay(100) }