Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
I have a 10 bit number, for example, 1100000101. I want to store it in 8-bit EEPROM so I split that number into the high set and low set.High set:0000000011Low set:0000000101How do I combine these two 8 bit numbers into the original 1100000101?
uint8_t msb = 0x03;uint8_t lsb = 0x05;uint16_t n = (msb << 8) | lsb;