rhoads2234
18-01-2008, 20:15
my team wants to use the USB chicklet with the x-box360 controller
in the FIRSTwiki it explains how to test an individual bit in MPLab
I would like to make sure that code like the following is supported in EasyC
#define BUTTON_5 ((~p1_wheel &0x80)!=0)
I think it should work but there might be some obscure reason why it might not
Confirmations with reasons or denials would be great! Thank you in advance!
in the FIRSTwiki it explains how to test an individual bit in MPLab
I would like to make sure that code like the following is supported in EasyC
#define BUTTON_5 ((~p1_wheel &0x80)!=0)
I think it should work but there might be some obscure reason why it might not
Confirmations with reasons or denials would be great! Thank you in advance!