im no expert ,so my first question will have to be did you do the install of the pantilt hat
.following th git hub or by installing the pimoroni dashboard
install pantilt using github
long way lots of typing .
or dashboard install–,less typing
Dashboard - What is it and what was it created in?