/* * main.c * * Created: 08-Feb-21 10:03:33 AM * Author: lemms */ # define F_CPU 10000000UL #include #include typedef enum { IDLE, PERPARE_COFFEE_POWDER, BOIL_WATER, POUR_COFFEE } state ; typedef enum { false = 0, true = 1 } bool; state current_state; void wait( int ms ) { for (int i=0; i 2000); setPourPumpState(shouldPour); milisPouring++; if(!shouldPour){ milisPouring = 0; } break; } wait(1); } }