void setup() { pinMode(3, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(4, OUTPUT); digitalWrite(4, 0); } void loop() { analogWrite(3,51); analogWrite(5,51); analogWrite(6,255); delay(1000); analogWrite(3,204); analogWrite(5,0); analogWrite(6,0); delay(1000); analogWrite(3,51); analogWrite(5,204); analogWrite(6,0); delay(1000); }
Открыть пример: Online ArduBlock
Видеоурок: