I am having a some trouble interpreting bits as bytes. What I have now is a string of either 8, 16, 24, etc. bits and I want to convert them into hex bytes. For example:
Lets say I have the following strings:
10100101 00110000
And I want to interpret each 4 as hex bytes so I would have
1010 as A, 0101 as 5, 0011 as 3, and 0000 as 0
Then when I put them together, I should get
A5 30 which would correspond to ¥0 based on their individual hex value. I'm not entirely sure on how to do this unfortunately. Might anyone have an idea to do this? If so, that'd be great! Thanks!