Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(void){
- int j;
- TRISB=TRISB & 0xfc00;
- LATBbits.LATB8=0;
- LATBbits.LATB9=1;
- static const unsigned char codes[]={0x4, 0x2, 0x1, 0x8, 0x10, 0x20, 0x40};
- while(1){
- for(j=0; j<7; j++){
- LATB= (LATB & 0xff00) | codes[j];
- delay(200);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement