Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <16F628A.h>
- #use delay(int=4000000)
- #use rs232(baud=9600,parity=N,xmit=PIN_B2,rcv=PIN_B1,bits=8)
- void main(){
- char charIn;
- while(true){
- if(kbhit())
- charIn=getch();
- switch(charIn){
- case ‘a’:
- output_high(PIN_A0);
- break;
- case ‘w’:
- output_low(PIN_A0);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement