BIT manipulation...

bitRead / bitWrite are designed for this purpose.
Note, however that bits number from zero, not one.