Advertisement
tpaper

Bitwise

Oct 20th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1.     for (int a=0;a<8;a++) {
  2.       if (z&1 == 0) {
  3.         Serial.print(0);
  4.       } else {
  5.         Serial.print(1);
  6.       }
  7.       z=z>>1;
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement