I would like to set each bit in a byte, then write the byte out to a binary file.
I then need to take a value from 0 - 12, convert it to 4 bits, then write the 4 bits out to a file.
Could someone provide me with some sample code?
This is running on a linux platform. Thanks!