Fix typos and non-portable idioms

This commit is contained in:
Nero 2017-10-26 17:17:57 +02:00 committed by Nero
parent cf86bd6cf2
commit 54aa55a902

4
main.c
View File

@ -88,9 +88,9 @@ ISR(USART_RX_vect) {
int main() { int main() {
DDRC &= ~(0b1111); // This sets PC0 to PC3 to input DDRC &= ~(0b1111); // This sets PC0 to PC3 to input
PORTC |= 0b1111; // This makes dito pull-up per default PORTC |= 0b1111; // This makes said pins pull-up per default
DDRB |= (1 << PB3) | (1 << PB4); // Keybad rows DDRB |= (1 << PB3) | (1 << PB4); // Keypad rows
DDRD |= 0b11111100; // PD2 to PD7 for relay DDRD |= 0b11111100; // PD2 to PD7 for relay
DDRB |= 0b00000011; // PB0 and PB1 for relay DDRB |= 0b00000011; // PB0 and PB1 for relay