Question Do ADI have sample C++ code and procedure for writing the values to the device AD5254 from a Pic24F via I2C,
Answer: No C++. But We do have No-OS driver, hence one need to write your own wrapper around it. Please see our Github library link here. https://github.com/analogdevicesinc/no-OS/tree/main/drivers/potentiometer/ad525x