Nick, here is a ready to run Code Snippet that does the conversion:

Code:
InBuffer VAR BYTE[3]
CounterA VAR BYTE

Main:

' Bits are shifted into an Array of Byte (InBuffer) here (LSB first)
'  
' Place your Code to shift the bits in here...


 FOR CounterA = 0 TO 2
        
     'Revert the Bit order
     InBuffer[CounterA] = Inbuffer[CounterA] REV 8

     'Invert captured Data (if not required comment this line out)
     InBuffer[CounterA] = InBuffer[CounterA]^$FF
 
 NEXT CounterA

 'Output Raw Data to LCD (24 Bits, MSB first)
  LCDOUT BIN8 InBuffer[2],Bin8 InBuffer[1],Bin8 InBuffer[0]
 
GOTO Main