[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Стандартные приемы:
PORTB |= (1<<5); // Установка 5 бита
PORTD &= ~(1<<4); // Сброс 4 бита
if (PINC & (1<<0)) {...} // Проверка 0 бита
PORTA ^= (1<<1); // Инверсия 1 бита
То же самое и для обычных переменных.
E-mail: info@telesys.ru