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.
Main bcf gpio,4 ;make line LOW to discharge 100p
call _10uS
bsf gpio,4 ;make line HIGH to charge 100p
bsf status, rp0 ;Bank 1
movlw b'11111000' ;Set TRIS GP4 in
movwf TRISIO
bcf status, rp0 ;bank 0
call _20mS
btfss gpio,4
goto $+3
bcf gpio,2
goto Main
bsf status, rp0 ;Bank 1
movlw b'11001000' ;Set TRIS GP4 out
movwf TRISIO
bcf status, rp0 ;bank 0
bsf gpio,4 ;turn on LEDs and transistor
call _250mS
goto Main