Код из видео.
#define A 9 #define B 10 #define C 11 unsigned int ms = 10; void setup() { pinMode(A, OUTPUT); pinMode(B, OUTPUT); pinMode(C, OUTPUT); } void loop(){ digitalWrite(A, 1); digitalWrite(B, 0); digitalWrite(C, 1); delay(ms); digitalWrite(A, 0); digitalWrite(B, 0); digitalWrite(C, 1); delay(ms); digitalWrite(A, 0); digitalWrite(B, 1); digitalWrite(C, 1); delay(ms); digitalWrite(A, 0); digitalWrite(B, 1); digitalWrite(C, 0); delay(ms); digitalWrite(A, 1); digitalWrite(B, 1); digitalWrite(C, 0); delay(ms); digitalWrite(A, 1); digitalWrite(B, 0); digitalWrite(C, 0); delay(ms); }