Where to find sample code for TalonSPX speed controller

I am working on configuring the TalonSPX speed controller and I would like to test it with a motor to do this I need code which I don’t have, is there anywhere where I can find some code that requires only small modifications so that I can run a motor?
Thanks fam

Assuming you are using Talon SRX on CAN bus…
https://phoenix-documentation.readthedocs.io/en/latest/ch13_MC.html
… but I recommend you start at the top and don’t skip sections.

Examples…
https://phoenix-documentation.readthedocs.io/en/latest/ch23_AddResource.html

Have you read and performed all the steps in the documentation?

https://phoenix-documentation.readthedocs.io/en/latest/

Note that there is no TalonSPX. You have either a VictorSPX or a TalonSRX.