bit storing as byte

iS THERE ANY EXAMPLE DOING IT. i GONE THROUGH LIBRARY BUT NEVER IMPLIMENT FOR READ COIL. dO U HAVE SUGGESTION FOR IT