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...