Struggle with pantilthat.get_servo_two()


#1

I’m struggling here folks. Any suggestions as to what I could be doing wrong.

import pantilthat
pantilthat.servo_one(90)
pantilthat.servo_two(45)
print pantilthat.get_servo_one() # returns with 90 as expected.
print pantilthat.get_servo_two() # returns with 90 also, expecting 45

Change servo_one to whatever value and the value is returned for servo_one and servo_two.

What am i missing?

Thanks.


#2

This has been reported as a bug recently in GitHub. See: https://github.com/pimoroni/pantilt-hat/issues/10

It’s fixed in Git, but not yet released as a new version. But you can:

git clone https://github.com/pimoroni/pantilt-hat
cd pantilt-hat/library
sudo python setup.py install

#3

Thanks. Apologies for not picking up the request and action on GitHub. Still learning.