View unanswered posts | View active topics It is currently Mon Dec 22, 2014 3:02 am






Reply to topic  [ 2 posts ] 
all possible logic gates please 
Author Message
Rookie

Joined: Fri Sep 13, 2013 8:41 am
Posts: 1
Post all possible logic gates please
Hello
Could someone please tell me all possible logic gate codes please?
For AND OR, etc.
Thanks


Fri Sep 13, 2013 8:44 am
Profile
Moderator
Moderator

Joined: Thu Jan 03, 2013 5:10 pm
Posts: 198
Location: The plateau north of the Ohio River Valley, also known as Cave Country.
Post Re: all possible logic gates please
AND: &&

OR: ||

NOT: !

Bitwise AND: &

Bitwise OR : |

Bitwise NOT: !

Bitwise XOR: ^

Examples:

True && false => false
True || false => true
!true => false

1010 & 1100 => 1000
1010 | 1100 => 1110
!1010 => 0101
1010 ^ 1100 => 0110

Also, check out the robotc wiki operators page.

All other gates can be built up from these.
Does that help?

_________________
I'm not a robot! I'm british! ~ quote from an asparagus
I am not a robot! I am a unicorn! ~ quote from a robot


Fri Sep 13, 2013 1:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.