Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Podswietlenie() {
- for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
- analogWrite(Podswietlenie_PWM, fadeValue);
- delay(30);
- }
- }
- void Migacz_Lewy_OUT() {
- if (aktualnyCzas - zapamietanyCzas_Migacz_Lewy >= 500UL) {
- zapamietanyCzas_Migacz_Lewy = aktualnyCzas;
- stan_Migacz_Lewy = !stan_Migacz_Lewy;
- digitalWrite(Wyjscie_Migacz_Lewy, stan_Migacz_Lewy);
- }
- }
- void Migacz_Prawy_OUT() {
- if (aktualnyCzas - zapamietanyCzas_Migacz_Prawy >= 500UL) {
- zapamietanyCzas_Migacz_Prawy = aktualnyCzas;
- stan_Migacz_Prawy = !stan_Migacz_Prawy;
- digitalWrite(Wyjscie_Migacz_Prawy, stan_Migacz_Prawy);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement