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

[POWER_API] Need of an explicit function in the power api to change the state of the driver #72

Open
luizvilla opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@luizvilla
Copy link
Member

Is your feature request related to a problem? Please describe.
I have created a communication protocol for testing the Twist boards.
My test protocol requires turning the drivers of the legs on and off without activating the switching.
I am now rewriting my communication protocol code and this is not possible natively in the power api code.

Describe the enhancement you'd like
I would like to have an explicit function of the power api that would allow me something like this:

void TwistAPI::disconnectLegDriver(leg_t leg)
{
    if(dt_pin_driver[leg] != 0) spin.gpio.resetPin(dt_pin_driver[leg]);
}

Describe alternatives you've considered
I have considered using the spin api directly. It works, but this means bypassing the twist api, which is not good.

@luizvilla luizvilla added the enhancement New feature or request label Jul 1, 2024
@jalinei jalinei modified the milestones: V1.0, V2.0 Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants