Advertisement
Guest User

Untitled

a guest
Jan 14th, 2012
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. void changeDuty16bit(uint16_t duty, uint8_t channel)
  2. {
  3.     switch (channel)
  4.     {
  5.     case 1:
  6.         OutputCompareRegister1=duty;
  7.         break;
  8.     case 2:
  9.         OutputCompareRegister2=duty;
  10.         break;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement