Курсовая работа: Структура и использование микроконтроллеров
digitalWrite(13, HIGH); //vikl dvig
//4
digitalWrite(12, HIGH); //vikl nagrev
yroven = digitaRead(6);
while (yroven = 1){
digitalWrite(8, LOW);
yroven = digitaRead(6);
}
digitalWrite(8, HIGH);
//5
yroven = digitaRead(5);
while (yroven = 1){
digitalWrite(10, LOW);
yroven = digitaRead(5);
}
digitalWrite(10, HIGH);
//6
digitalWrite(13, LOW); //vkl dvig
delay(18000);
digitalWrite(13, HIGH); //vikl dvig
//7
yroven = digitaRead(6);
while (yroven = 1){
digitalWrite(8, LOW); //otkr k1
yroven = digitaRead(6);
}
digitalWrite(8, HIGH); //zakr k1
digitalWrite(3, HIGH);
delay(2000);