View Single Post
  #1   Spotlight this post!  
Unread 18-01-2008, 20:15
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
Testing for bits in EasyC

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!
__________________
ALWAYS a mechanical problem!