The following two files in the chapter02 folder complement what we have covered in this chapter by combining the concepts we have learned. As the overall code and approach are similar to what we have already covered, we will not go through the code in detail:
- dweet_button.py provides an implementation showing how to use a push button to create a dweet with the dweet.io service. This will let you change your LED state with the press of a button.
- pigpio_led_class.py provides a code-level example of how a low-level library like PiGPIO relates to a high-level library like GPIOZero.
We'll start by discussing dweet_button.py.