I have the pan-tilt hat for the raspberry pi.
I’ve built and installed it and confirmed it works, however it only works from the command line interactively and not from a script.
e.g. if I run:
The hat pans correctly, however if I have a script, panscript.py:
that does the same and I run it
the hat does nothing. weirdly the getpan and gettilt still return updated numbers as if the hat had moved.
Any help appreciated!