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.
ADC1_Init();
ADR = ADC1_Get_Sample(0);
if ((ADR > 100) & (ADR < 200)){
RD0_bit = 1;
delay_ms(20);
RD0_bit = 0;
}
if (ADR > 512){
RD1_bit = 1;
delay_ms(20);
RD1_bit = 0;
}