Обновить PetFilaMachine.ino

This commit is contained in:
mirivlad 2024-01-27 06:02:15 +03:00
parent b7c022e2f2
commit 9b59c2ffda
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ void loop()
// (после вызова можно получать это значение как regulator.output) // (после вызова можно получать это значение как regulator.output)
// обновление происходит по встроенному таймеру на millis() // обновление происходит по встроенному таймеру на millis()
regulator.getResult(); regulator.getResult();
analogWrite(D0, regulator.output); // отправляем на мосфет analogWrite(D0, regulator.getResultTimer()); // отправляем на мосфет
} }
if (motor_state == 1){ if (motor_state == 1){
if (motor_dir == 0){ if (motor_dir == 0){