Test each bit of a char

hello, i have each character form the serial port being saved into a char. how to i test each bit of that char to see if its a 1 or 0 so i can shift the byte out to a shift register. Thank you.

here is what i have so far: void setup() { // put your setup code here, to run once: pinMode(4, OUTP - Pastebin.com

Welcome to the forum

Take a look at the bitRead() function

Why do you need to test each bit before shifting the byte to a shift register ?

so i know weather to set the data line high or low.
i think bitRead() will work thank you.

Take a look at the shiftOut() function

That function is exactly what i need, thank you!

It's almost as though it was written for it :grinning: