Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
A sample example code...
#include <LPC23xx.H> /* include for LPC23xx */
static void PWMInit(){
/* considering LPC2387 */
/* Select PWM1.2 output on P1.20 */
PINSEL3 |= (0x2 << 8);
/* reset PWM counter */
PWM1TCR = 0x02;
/* setup match control to reset on MR0 */
PWM1MCR = 0x02;
/* select single edge for PWM1.2 and enable PWM1.2 o/p */
PWM1PCR = 1 << 10;
/* setup PWM period */
PWM1MR0 = 100;
/* setup PWM duty cycle (50%) */
PWM1MR2 = 50;
/* start counter and enable PWM */
PWM1TCR = 0x81;
/* enable LER */
PWM1LER = 0x04;
}
int main(){
PWMInit();
while(1);
}