/* * userio.h: reacting when you fiddle with buttons, switches, and knobs * * file creation: 20231016 1505 */ #ifndef _INC_USERIO_H #define _INC_USERIO_H #include #define MODE_CONT 0 #define MODE_CONT_TARGET 3072 // (4096 * (1 - (1 / 4))) #define MODE_FUN 1 #define MODE_FUN_TARGET 2731 // (4096 * (1 - (1 / 3))) #define MODE_DIODE 2 #define MODE_DIODE_TARGET 2048 // (4096 * 1 - ((1 / 2))) extern uint8_t knob[2]; void userio_parse(); uint8_t userio_get_mode(); #endif /* _INC_USERIO_H */