I have an array that holds 28 ints which are all 1's and 0's. However, I need to print this information as 4 characters so how do I get each 7 bytes of data to become one bit in order to print.
Not sure this makes sense so I will illustrate what I need to:
Right now my array (in order) is this: 0101101111011101011000100010 But I need to somehow take those first 7 numbers (0101101) and print that out as Z and do that with the next 7, the next 7...
Thanks for your help!
0101101. If you left pad that by0, you get00101101= 0x2D = '-'. If you right pad that by0, you get01011010= 0x5A = 'Z'. That is counter intuitive. Is that what you really want, to pad a zero to the right?