
Macros | |
| #define | PRINTBIN(Num) for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? '1' : '0'); |
| < More... | |
| #define | PRINTBINS(Num) for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? " 1 " : " 0 "); |
| #define PRINTBIN | ( | Num | ) | for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? '1' : '0'); |
<
Prints a binary number with leading zeros (Automatic Handling)
Prints a binary number with leading zeros (Automatic Handling) with space
| #define PRINTBINS | ( | Num | ) | for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? " 1 " : " 0 "); |