Sometimes a condition will need to exist that tests a variable against a binary number. This is how to do this using the == operator.
Example:
if (receiveData == 0b11110000) PORTB ^= (1 << PINB0);
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.