Can is see what code is being sent?

I have Pi that connects to a PCA9685 and turns 45 degrees multiple times then goes back to zero. I’m trying to learn some code and this seemed to be the best way for an end solution. Is there a way to see what “code” is or has been sent? Essentially what “code” is being generated and sent to my Pi?


Unfortunately the code is all built in to the agent so there is no real way to see it. Here is a good .pdf file that goes step by step setting up the PCA9685 and controlling it with python

Thank you.