We connected our LED to the internet using the dweet.io service and called its RESTful APIs, which are documented at the following:
- Dweet.io API documentation:Â Â https://dweet.io
You may wish to familiarize yourself with the GPIOZero library briefly to get an idea about what it can do. It's well documented with heaps of examples. Here are a couple of useful links to relevant parts of the API documentation that we've covered so far:
- GPIOZero home page:Â https://gpiozero.readthedocs.io
- Output Devices (LED):Â https://gpiozero.readthedocs.io/en/stable/api_output.html
- Input Devices (Button):Â https://gpiozero.readthedocs.io/en/stable/api_input.html
Regarding PiGPIO, here are the relevant parts of its API documentation. You'll notice that PiGPIO is a more advanced GPIO library with less verbose documentation.
- The PiGPIO Python home page:Â http://abyz.me.uk/rpi/pigpio/python.html
- The read()Â method:Â http://abyz.me.uk/rpi/pigpio...