Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature currently requires accessing the site using the built-in Safari browser.
#include <12F509.h>
#fuses INTRC, NOWDT, NOPROTECT, NOMCLR
#use delay(clock=4000000)
void main(void)
{
do
{
SET_TRIS_B(0x0F);
delay_ms(1000);
output_low(PIN_B5);
output_high(PIN_B0);
delay_ms(1000);
output_high(PIN_B1);
output_low(PIN_B0);
delay_ms(1000);
output_high(PIN_B2);
output_low(PIN_B1);
delay_ms(1000);
output_high(PIN_B4);
output_low(PIN_B2);
delay_ms(1000);
output_high(PIN_B5);
output_low(PIN_B4);
}
while(1);
}
If the T0CS bit is set to ‘1’, it will override
the TRIS function on the T0CKI pin.