How can i call 1 Bit from Complete byte of the CAN-BUS to run Digital output?

that also great idea thanks alot. :blush:

i have another question pls.

As buf [8] contains the 8 Bytes of the data and i need to print 8 bits of each of byte

i writed this code:

The byte array has sequences Links to write [buf(1), buf(2), .....buf(8)]
The Bits sequences is printed mirrored:
Example:
if buf(1) = 20 Hex , expected the bits num of [ 0010 0000 ]
but what i actualy becom is [0000 0100]

Question:
How could i arrange this sequences to deal with the signal?