Guest User

Untitled

a guest
Apr 21st, 2015
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void set_output(uint8_t pwm_lvl) {
  2.   if (pwm_lvl > FAST_PWM_START && pwm_lvl != 255) {
  3.     TCCR0A = PWM_FAST; // fast-PWM
  4.   } else {
  5.     TCCR0A = PWM_PHASE; // phase corrected PWM
  6.   }
  7.   PWM_LVL = pwm_lvl;
  8. }
RAW Paste Data