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/smooth.py”, line 11, in
pantilthat.pan(a)
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 466, in servo_one
self.setup()
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 80, in setup
self._set_config()
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 118, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, 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.