Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Podlewanie automatyczne
- if ((w_g<dd) && (zezwolenie_czasowe==1) && (p_w == 0))
- {
- PORTD |= (1<<PD5) | (1<<PD7); // Załączanie pompy
- _delay_ms(2000);
- if (wynik[2][0] == '2')
- {
- _delay_ms(2000);
- }
- if (wynik[2][0] == '3')
- {
- _delay_ms(4000);
- }
- PORTD &=~ (1<<PD5) | (1<<PD7); // Wyłączanie pompy
- wynik[4][0] = '0'; // Wykasowanie zezwolenia czasowego
- RTC_SetDate(0,0,0); // Wyzerowanie upływu czasu od ostatniego podlania
- RTC_SetTime(0,0,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement