Error when running pantitltat.pan()

I receive the following error messages when executing pantilthat.pan(a)

Traceback (most recent call last):
File “/home/pi/Pimoroni/pantilthat/examples/”, line 11, in
File “/usr/lib/python3/dist-packages/pantilthat/”, line 466, in servo_one
File “/usr/lib/python3/dist-packages/pantilthat/”, line 80, in setup
File “/usr/lib/python3/dist-packages/pantilthat/”, line 118, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File “/usr/lib/python3/dist-packages/pantilthat/”, line 209, in _i2c_write_byte
raise IOError(“Failed to write byte”)
OSError: Failed to write byte

Double check that you have the hat correctly lined up on the GPIO header, and that it is firmly connected.
Try running sudo i2cdetect -y 1
That should get you a 0x15 for the PIC16F1503.

That was it. Thank you very much.