Go Down

Topic: Documentation correction BitwiseCompoundAnd (Read 734 times) previous topic - next topic

at the bottom of the page it states:
-----------------------------------------------
So if:
myByte =  10101010;

myByte &= B1111100 == B10101000;
-----------------------------------------------
This should have a 'B' in the second line
-----------------------------------------------
So if:
myByte =  B10101010;

myByte &= B1111100 == B10101000;

Tom Carpenter

Further more, there is a bit missing, so really it should be either:
==========================================
So if:
myByte =  B10101010;

myByte &= B1111100 == B00101000;
===========================================

or:
===========================================
So if:
myByte =  B10101010;

myByte &= B11111100 == B10101000;
============================================
~Tom~

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy