Hi there, I'm stuck in the end of this
My 8channels FlexVolt sensors (which are very nice) output data with 10bits precision like that (reference: https://github.com/CatabeeScienceAndDesign/FlexVolt)
0b11223344 (where 11 is the lowest 2 bits from channel1, 22 is the lowest 2 bits from channel2, etc)
Each channel represent a value coming from muscle contraction.
For retrieving each value, I need to combine one of the first 8 ones and the last one.
For instance, if I want the value coming from the channel 1, if I receive 128 0 0 0 0 0 0 150, it means:
- 128 is the high 8bits from the channel 1, ok
- 150 has to be decomposed/converted and combined to the previous one
How can I retrieve my final value ...? I'm really stuck and this is ... easy, I know.
128 << 2 + ????????
(not sure about the thread title, I may improve this)