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 main(void){
TRISA.F4 = 1; //Input
PORTB = 0; //Clear initial state
TRISB = 0; //Output
do{
if (PORTA.F4 == 1){
PORTB.F0 = 1;
}else{
PORTB.F0 = 0;
}
}while(1);
}