Preloader image
   

Adventures in Science – Arduino Logic Operators

We go over the basic Boolean operators in C and how to use them to make compound conditional statements. When dealing with Boolean logic, we must assume that variables can only have one of two values: true or false. From there, we have three fundamental operators: NOT, AND, OR. We can combine them to make other operations, like exclusive OR (XOR). Using these operators, we can make compound conditional statements to do things like look for the moment when a button was pushed.

 

Share this post on the following platforms easily:

No Comments

Post A Comment

error: Context Menu disabled!