Hello All,
could anybody help me to convert bools to a byte or evtl. in a hex?
I have some bools like
bool0,bool1,bool2,bool3,bool4,bool5,bool6,bool7;
This bools I want to conver to 8 bit or to hex, to sent later to serial port.
How to do it?
thanx in advance

VulpesPosted Aug 26, 2012, 11:07 AM
For the purposes of this method, b0 is assumed to represent the least significant and b7 the most significant bit of the resulting byte: