Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. void jas(DigitalOut * ledky, char * jasy, char pocet, char T) {
  2. while(1) {
  3. for(char time = 0; time<T;time++;)
  4. {
  5. for (char i = 0; i < pocet; i++)
  6. {
  7. char period1 = (T * jasy[i]) / 100;
  8. (time<period1) ? ledky[i]= 1 :ledky[i] = 0;
  9. }
  10. wait_ms(1);
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement