I would like to use the PCA9685 Servo Driver in place of the Pimoroni Pan/Tilt HAT Servo Driver in a project that uses the Pimoroni Pan/Tilt HAT for real time object tracking.
It is my understanding that the Pimoroni Pan/Tilt Servo Driver uses a custom IC to provide the PWM servo control signals and its I2C bus address and control registers are different than those of the PCA9685 Servo Driver.
This Pimoroni Pan/Tilt Face Tracker project uses the PCA9685 Servo Driver .
My question is: Both of these real time tracking projects import the same Pimoroni “pantilthat” library even though one project uses the Pimoroni Pan/Tilt Servo Driver and the other uses the PCA9685 Servo Driver, so how can the same “pantilthat” library import control two different Servo Controllers that have different control registers and I2C addresses?
What am I missing here in understanding the use of the “pantilthat” library import in relation to the particular Servo Driver being used in each project?