send food avail

This commit is contained in:
Kseninia Mikhaylova 2024-09-24 14:43:21 +03:00
parent 60814250c9
commit 822548fabb
1 changed files with 5 additions and 4 deletions

View File

@ -127,7 +127,8 @@ void loop()
} }
} }
digitalWrite(TERM_INHIB, term_inhib.isHold() == 0); int food_available = digitalRead(HANDPIN); // читать инпут с "датчика рук"
digitalWrite(TERM_INHIB, food_available == 0);
btn.tick(); btn.tick();
btn_setup.tick(); btn_setup.tick();