例えば、8bitのレジスタ(I/O port)があって、
そのbit0で、LEDをon:1/off:0させる

uint8_t reg = 0x00;

reg |= 0x01; // on
reg &= 0x00; // off