/* * rotaryEncoder.c * * Created: 16/12/2021 16:34:05 * Author: n0x */ #include "rotaryEncoder.h" #define ROTA PORTC7 #define ROTB PORTC6 #define ROTBUTTON PORTC5 /* enums */ enum{ S2, S3, S4, S5, S6, S7, INIT, WAIT } RotaryState = INIT; /* Emus for the stoplight task (task 3) */ int16_t count; void drehgeber_init(void) { DDRC &= ~(7<