GPIO Zero allows you to create objects representing GPIO devices. As well as running it on a Raspberry Pi, you can also install GPIO Zero on a PC and create objects referencing GPIO pins on a Pi over the network.
To do this, you'll need to do a few things to get set up:
-
Enable Remote GPIO on the Pi in the Raspberry Pi Configuration Tool.
-
Run the pigpio daemon on the Pi: