variable smaller than a byte?


I have some large arrays that contain image data for an LED matrix display.

Right now I have 3D array of unsigned ints. But I don't actually need 256 * 3 values for each pixel since the display doesn't have anywhere near that colour depth.

Can I store an array of values between 0 and 7 and save space?



This will give you some ideas...