|
Re: Code to Read the Binary Inputs on Analog Buttons
now correct me if im wrong but isnt your use of the ? operator the same as the ! operator
im pretty sure that
p1_sw_5 = !(p1_aux&1<<7);
will do the same as
p1_sw_5=(p1_aux&1<<7)?0:1;
Last edited by aegeon : 14-03-2007 at 21:06.
|