Go to Post A team does not achieve "Powerhouse" status by dominating every once in a while... they achieve that status by consistently dominating every year. - Jon Jack [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Almost ready for testing Doug G Robot Showcase 4 04-02-2006 18:49
How do i connect the camera for testing? naor52 Programming 1 12-01-2006 01:11
Testing Motor for Specs? indieFan Motors 12 07-11-2004 18:36
Budget OI/RC for testing Racer26 General Forum 1 09-07-2004 21:15
Tips for Sensor Programming and Testing EricEnsor Programming 3 24-01-2003 11:28


All times are GMT -5. The time now is 23:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi