Substituted Auto phat board in jetbot kit

Instead of using SparkFun Qwiic Motor Driver in the jetbot kit, I used Auto phat board to measure the encoder values with DG01D-E motors. What software changes to the original jetbot code do I need to make to control the motors and get encoder data?

Installed the libraries for Auto phat and worked fine, just have to merge it with jetbot kit