Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //tady je pumpa 1
- scale.tare();
- lcd.setCursor(0, 0);
- lcd.print("Pumpa 1 Zapnuta");
- lcd.setCursor(0, 1);
- lcd.print("Pozadovano ");
- lcd.print(pump1g);
- lcd.setCursor(0, 2);
- lcd.print("Aktualne ");
- lcd.print(scale.get_units());
- delay(3000);
- digitalWrite(in1, HIGH);
- while (scale.get_units() < pump1g)
- {
- lcd.setCursor(0, 3);
- lcd.print(scale.get_units());
- lcd.print(" g");
- }
- delay(5000);
- digitalWrite(in1, LOW);
- lcd.setCursor(0, 0);
- lcd.print("Pumpa 1 Vypnuta");
- delay(3000);
- lcd.clear();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement