Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint8_t temp;
- temp = 0;
- if (bit_1) temp |= (1 << NUMBER_OF_BIT_1) ;
- if (bit_2) temp |= (1 << NUMBER_OF_BIT_2) ;
- ...
- if (bit_7) temp |= (1 << NUMBER_OF_BIT_7) ;
- LAT_X = temp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement