1
Reply

Bool To bit/byte

ilhami caliskan

ilhami caliskan

Aug 26 2012 10:11 AM
1.2k

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


 


Answers (1)