Page Contents
Setting bits
“`REG |= (1< for example:TWCR |= (1<<TWEN) | (1<<TWIE) | (1<<TWEA);
Clearing
REG &= ~((1<<BIT1) | (1<<BIT2) | (1<<BIT3));
TWCR &= ~((1<<TWEN) | (1<<TWIE) | (1<<TWEA));
random things I made and things I learnt making them
Page Contents
“`REG |= (1< for example:TWCR |= (1<<TWEN) | (1<<TWIE) | (1<<TWEA);
Clearing
REG &= ~((1<<BIT1) | (1<<BIT2) | (1<<BIT3));
TWCR &= ~((1<<TWEN) | (1<<TWIE) | (1<<TWEA));