Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic recipe won't work with i2c servo HAT in use. #1114

Open
Kilted-Weaver opened this issue Jan 26, 2024 · 3 comments
Open

Basic recipe won't work with i2c servo HAT in use. #1114

Kilted-Weaver opened this issue Jan 26, 2024 · 3 comments

Comments

@Kilted-Weaver
Copy link

When I tried to use the button basic recipe on pin 2 while using the servo HAT i2c every time i pressed the button the servos stopped responding. Moving to pin 26 solved the problem (after a while of head scratching as a newbie to python and robotics) as I noticed in the pin lay out that pin 2 has a 12c designation.

@Kilted-Weaver
Copy link
Author

Please could a note be added to warn other newbies. Thank you for all the documentation without which I would be still scratching my head.

@bennuttall
Copy link
Member

Sorry, that's a bit specific. It's generally the case that you need to exercise caution when using GPIOs alongside a HAT.

@lurch
Copy link
Contributor

lurch commented Jan 28, 2024

https://pinout.xyz/boards/ Is a useful way to figure out what pins may be in use by a particular HAT. If a pin is being used by your HAT, then you shouldn't try using that pin with GpioZero at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants