Go to Post There's something about building a robot that just makes people enthusiastic about life. - BBnum3 [more]
Home
Go Back   Chief Delphi > Technical > Control System
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
  #4   Spotlight this post!  
Unread 13-03-2007, 21:14
aegeon aegeon is offline
Registered User
FRC #0818
 
Join Date: Mar 2007
Location: Sterling Heights
Posts: 1
aegeon is an unknown quantity at this point
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.
Reply With Quote
 


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
Help! Analog Inputs!! brennerator Programming 7 11-02-2007 15:48
Analog Inputs bush Programming 5 13-03-2006 17:49
How do the Analog Inputs work? JBotAlan Electrical 3 07-01-2005 00:11
Failing analog inputs? Phasmatis568 Control System 5 22-01-2004 13:28
Analog Inputs 316_programer Technical Discussion 2 05-02-2002 05:53


All times are GMT -5. The time now is 20:27.

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