Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <18F452.h>
- #use delay (clock = 20000000)
- #fuses HS, NOWDT, NOLVP
- main(){
- set_tris_e(0x03); // E0 and E1 inputs....
- set_tris_b(0x00); // Port B all oputputs...
- while(1){
- if( input(PIN_E0) == 1){
- output_toggle(PIN_B0);}
- }
- }
Add Comment
Please, Sign In to add comment