Raspberry PI and pigpio library (2)

A shell command, pigs, is provided to control the GPIO.

pi@raspberrypi:~/Zpigpio $ sudo pigpiod

pi@raspberrypi:~/Zpigpio $ pigs w 4 1
pi@raspberrypi:~/Zpigpio $ pigs r 4
1
pi@raspberrypi:~/Zpigpio $ pigs w 4 0
pi@raspberrypi:~/Zpigpio $ pigs r 4
0

Leave a Reply

Your email address will not be published. Required fields are marked *