Boolean Logic & Bitwise Operators Tutorial and Walkthrough in Swift

Опубликовано: 27 Март 2026
на канале: Vlad Romanov
2,777
42

In today’s tutorial, we are looking back at a project I’ve covered a few months ago    • Ep. 57 Arduino Accelerometer & Gyroscope T...   where I covered the use of the MPU6050 Gyroscope & Accelerometer. A lot of confusion came from the use of shift operators when I was processing the data and I decided to create this tutorial as a follow-up. We will be covering a little more than just those operators to make sure that the fundamentals are clear and we’re on the same page. The following will be covered here:
Part1: Discuss boolean operators: AND, OR, XOR, NOT
Part2: Discuss two's compliment for negative number representation
Part3: Discuss binary shift operators
Part4: Data shift operator example

Thank you for your contributions to my projects. With your help, I am able to showcase, teach and inspire people all over the world!
Patreon:   / ee_enthusiast  

Get in touch:
Facebook:   / eeenthusiast  
Twitter:   / ee_enthusiast  
Website: http://eeenthusiast.com
GitHub: https://github.com/VRomanov89
Personal website: http://vladromanov.com

Software:
https://github.com/VRomanov89/EEEnthu...

Relevant Links:
Swift Advanced Operators: https://developer.apple.com/library/c...

Relevant Search Terms:
iOS, Programming, Swift 3, Xcode 8.0, boolean logic, logic gates, boolean logic explained, boolean logic swift, swift math and boolean operators, swift advanced operators, digital electronic gates, swift programming, swift programming tutorial, swift beginners,