Applying library "pigpio"

unfinished