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.
bsf STATUS,RP0
clrf ANSEL ;(this will make all pins digital)
movlw b'00010000'
movwf PORTA
btfss PORTA, 4 ;button is pressed?
call Button ;yes.. call a subroutine; no.. this line is skipped
On a Power-on Reset, the pins PORTA<4:0> are configured as analog inputs and read as "0".