I don't see any strong reason to use uint8_t for LSB_BIT. You could change it to unsigned and then use %u for the scanf format. You wouldn't even have to make any other changes in your code.