I have a very simple sketch, something like this:
int aFour = 4;
softwareSerial.print(4,BIN);
softwareSerial.print(aFour,BIN);
Which gives the following output:
1001
0011
Why don't they print both as 0100
?
EDIT: the output was in one line : 10010011
, I falsely asumed the output should be split into twice 4 bits.
100
100
11
or so because you did justprint
notprintln
...100
when I tried it. @KIIV did raised a good point aboutprintln
.