You need to include all the libraries from the satnogs rotator firmware. libraries · master · librespacefoundation / SatNOGS / satnogs-rotator-firmware · GitLab
The modifications I’ve made to those libraries I cut and pasted above (easycomm and rotator_pins)