Skip to content

Instantly share code, notes, and snippets.

@klunkean
Last active August 29, 2015 14:21
Show Gist options
  • Save klunkean/8db81619ef677851b82d to your computer and use it in GitHub Desktop.
Save klunkean/8db81619ef677851b82d to your computer and use it in GitHub Desktop.
void pwmcycle(uint8_t tOn, uint8_t tOff)
{
BITSET(PORTA,PIN_OUT1);
wait(tOn);
BITCLEAR(PORTA,PIN_OUT1);
wait(tOff);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment