>=20 > Well actually it could be something like this instead: >=20 > typedef union { > uint32_t rgb_32; > struct { > uint8_t red:8; > uint8_t green:8; > uint8_t blue:8; > uint8_t pad:8; > }col; > }RGB; >=20 > Then you can do: >=20 > RGB rgb; > rgb.col.red=3D12; >=20 > An array would also be fine: >=20 > RGB rgb[10]; > rgb[5].col.red=3D12; >=20 Correcting myself here: > If you don't have the typedef you need to explicitly declare it as: >=20 > union RGB rgb; This is not correct. Just ignore it... /Ruben --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .