I tried very hard to understand state machine for button but I couldn't understand it. I saw the State Machine diagram is shown in Figure below. I am trying to understanding it. There are five states as follows. Button can be pressed or released or held continuously so these three state should be in state machine. I don't know what the B_UP state indicate in diagram. I need someone's help because I really don't understand how the state changes and what condition cause state change.
Update : suggest better name for states I don't think button UP make more sense
Update : suggest better name for states I don't think button UP make more sense
Last edited: