In order to develop any piece of software, a developer usually requires the use of at least three different diagrams. The full list of diagrams can be found in the UML standard, which is referenced at the end of this chapter in the Further reading section. To create our pushbutton application, we require three diagrams:
- An application flowchart
- A state diagram
- A class diagram (for our API and driver design)
Let's start by examining the flowchart, which can be seen here:
The best way to proceed with any design is to keep things simple. For our RGB pushbutton application, all we need to do is read the switch and update ...