button_state_machine My button state machine Practising callbacks and "object" C programming For short/fast main program will be OK, otherwise better use interrupts Was compiled on NUCLEO-F303RE