Search found 1 match

by fredmatic
Tue Mar 21, 2006 4:08 pm
Forum: Computer Programming
Topic: PICC lite program functions
Replies: 13
Views: 9215

Re: PICC lite program functions

IN 'C' an easy way is to define your bits with real names, like #define button1 0x02 (for bit #2) then..... if(portb && (1 << button1)) >>>> the '1' get shifted 2 places left { whatever you want to happen if is ON } else { whatever you want to happen if button 1 is OFF } As far as free stuff...