Back to Browse

Arduino Programming: Logical Operators

42.1K views
May 22, 2017
9:23

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. Materials: SparkFun RedBoard - Programmed with Arduino: https://www.sparkfun.com/products/13975 Breadboard: https://www.sparkfun.com/products/12002 Pushbutton: https://www.sparkfun.com/products/9190 Jumper Wires: https://www.sparkfun.com/products/11026

Download

1 formats

Video Formats

360pmp414.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Arduino Programming: Logical Operators | NatokHD