Guest User

Untitled

a guest
Jan 6th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. void Uruchom(int ileRazyDioda, ileRazyBrzeczyk)
  2. {
  3. for(int i = 0; i < ileRazyDioda; i++)
  4. {
  5. dioda = 1;
  6. delay(czas);
  7. dioda = 0;
  8. }
  9. delay(30000);
  10. for(int j = 0; j < ileRazyBrzeczyk; j++)
  11. {
  12. buzz = 1;
  13. delay(30000);
  14. buzz = 0;
  15. }
  16. }
  17.  
  18.  
  19. void main(void)
  20. {
  21. while(1)
  22. {
  23. Uruchom(3,3); // 3 razy dioda i 3 razy brzeczyk
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment