#include <Wire.h>
int pin[4] = {18,19,17,5};
int text1[] = {208, 178, 208, 191, 208, 181, 209, 128, 208, 181, 208, 180};
int text2[] = {208, 178, 208, 191, 209, 128, 208, 176, 208, 178, 208, 190};
int text3[] = {208, 178, 208, 187, 208, 181 ,208, 178, 208, 190};
int text4[] = {208, 189, 208, 176, 208, 183, 208, 176, 208, 180};
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
for (int i=0; i<4; i++)
pinMode(pin[i], OUTPUT);
}
void loop() {
led(100);
Serial.println("Маршрут патрулирования:");
text();
delay(1000);
}
void text(){
for(int i=0; i<12; i++){
Serial.write(text1[i]);
}
Serial.write(32);
for(int i=0; i<12; i++){
Serial.write(text1[i]);
}
Serial.write(32);
for(int i=0; i<12; i++){
Serial.write(text2[i]);
}
Serial.write(32);
for(int i=0; i<12; i++){
Serial.write(text1[i]);
}
Serial.write(32);
for(int i=0; i<10; i++){
Serial.write(text3[i]);
}
Serial.write(32);
for(int i=0; i<10; i++){
Serial.write(text4[i]);
}
Serial.write(32);
Serial.write(10);
}
void led (int t){
for (int i=0; i<4; i++){
digitalWrite(pin[i], HIGH);
delay(t);
}
for (int i=3; i>=0;i--){
digitalWrite(pin[i], LOW);
delay(t);
}
}