Updated to deal with new version of pigpio.py

locked down using v22 instead of latest version of pigpio