#include void Taster_init (void){ DDRD &= ~(0b111<<5); /* Set bit 5-7 of Data Direction Register D as input */ DDRC &= ~(1<<2); /* Set bit 2 of Data Direction Register C as input */ PORTD |= (0b111<<5); /* Initialize bit 5-7 of PORTD as for pull up resistor */ PORTC |= (1<