[1. Initial state] -> [2. Time insertion state] -> [3. Washing state] -> [4. Washing Done state]
-
Initial state(init state)
-
program starts with type "./washwer" in CMD window
./washer
-
you can use kind of arguments
./washer led-on dot-on fnd-on
each of arguments operates specific working of each parts
-
If program started, you could see menu of selecting mode for machine.
Insert key with keyboard and press enter.
Then current state will change to Time insertion state.
-
-
Time insertion state(TI state)
Insert Time of machine working.-
Insert number with keypad (0~9) buttons.
This system uses Decimal numbers. -
Erase the 1 recent number with keypad 'e' button.
-
Final Time precision with keypad 'f' button.
If 'f' button pressed, current state will change to Washing state.
-
-
Washing state(WS state)
Machine work as much as the time entered in the previous state.After the time that you enter, current state will change to Washing Done state.
-
Washing Done state(WD state)
In this state, press 'b' button of keypad, program will exit.