If I want to print a number 0~255 in binary. for example, I could use Serial.print(100,BIN). And the result is "1100100".
My question is how can I put preceding '0's in front, make it always 8 digits as 01100100? 'print (100,BIN,8)' or the '%08d' way does not work.