I want use servo click library to control the servo motor using PIC16F1526 micro-controller and PCA9685 module. But in servo click library they are pre-define mikrobus and I2C for specific micro-controller given in below code
Code: Select all
void servo_i2cDriverInit(T_SERVO_P gpioObj, T_SERVO_P i2cObj, uint8_t slave_of_PCA9685, uint8_t slave_of_LTC2497){
_slaveAddress_of_PCA9685 = slave_of_PCA9685;
_slaveAddress_of_LTC2497 = slave_of_LTC2497;
hal_i2cMap( (T_HAL_P)i2cObj );
hal_gpioMap( (T_HAL_P)gpioObj );
hal_gpio_csSet(0);
}
. I only want to use own specific pin like RC3 , RC4 of micro-controller is connected to SCL , SDA of PCA965 respectively.T_SERVO_P gpioObj, T_SERVO_P i2cObj
Thank you