-
Notifications
You must be signed in to change notification settings - Fork 12
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
ServoArray constructor #41
Comments
Side question: Why is this called ServoArray? It doesn't appear to be an array Servos...? |
It might be helpful to link to the specific line(s) you're referring to. |
The code in question is the ServoArray::new constructor, which sets the two GPIO address lines which modify the PCA9685 address itself. |
The usual way to do something like this in rust would be to have two functions: I'm not sure how those bits should be used, is it something like Where would the user find information about what those bits should be for their particular device? That might determine what they should pass in (e.g, if they would know the full address, that's probably what should be passed, but panic if it doesn't match what we expect) |
Right now we pass in two false flags for the I2C constructor, since we control two address bits.
Is there a way we can:
The text was updated successfully, but these errors were encountered: