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.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include "18F2520.h" #fuses HS,NOPROTECT,INTRC_IO #use delay(clock=4000000) #define PUSH_BUTTON PIN_A1 void main() { setup_oscillator(OSC_4MHZ); set_tris_a(0x02); set_tris_b(0x0F); int count; count = 0; do { if(input_state(PUSH_BUTTON)==0) { count++; output_b(count); }while(count==16) count=0; }while(1); }