pigpio example code (not working)