PanTiltHat Problem

Trying to get a new Pan-Tilt Hat with servos to work but having program errors python 3.9.2.
I have bullseye installed on a RPI 4 B and call Thonny with the timeout.py program and I get the following errors displayed --Whats going wrong?

Traceback (most recent call last):
File “/home/raspi/pihat.py”, line 17, in
pantilthat.pan(a)
File “/usr/local/lib/python3.9/dist-packages/pantilthat/pantilt.py”, line 466, in servo_one
self.setup()
File “/usr/local/lib/python3.9/dist-packages/pantilthat/pantilt.py”, line 80, in setup
self._set_config()
File “/usr/local/lib/python3.9/dist-packages/pantilthat/pantilt.py”, line 118, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File “/usr/local/lib/python3.9/dist-packages/pantilthat/pantilt.py”, line 209, in _i2c_write_byte
raise IOError(“Failed to write byte”)
OSError: Failed to write byte

And when i check i2c, i get:
image

1 Like

i got same problem.
can anyone help us, pls