Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void pwm_init()
{
TRISC1=0;
T2CKPS1=0;
T2CKPS0=0;
PR2=0x50;
CCPR2L=0x17;
TMR2ON=1;
CCP2CON=0b00001100;
}
void pwm_disable()
{
CCP2CON=0b00000000;
}
void pwm_enable()
{
CCP2CON=0b00001100;
}