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

✨Added pros button support for piston::toggle #255

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

jemminiz
Copy link
Contributor

@jemminiz jemminiz commented Dec 23, 2024

Summary:

Added an overload for ez::Piston::button_toggle() for pros::controller_digital_e_t

Motivation:

Allows users to input buttons instead of readings from the controller

References (optional):

Closes #254

Test Plan:

Ensure that ez::Piston::button_toggle(pros::E_CONTROLLER_DIGITAL_x) works the same as ez::Piston::button_toggle(master.get_digital(pros::E_CONTROLLER_DIGITAL_x).

  • test item

Download the template for this pull request:

Note

This is auto generated from Add Template to Pull Request

curl -o [email protected]+bb1713.zip https://nightly.link/EZ-Robotics/EZ-Template/actions/artifacts/2356726531.zip;
pros c fetch [email protected]+bb1713.zip;
pros c apply [email protected]+bb1713;
rm [email protected]+bb1713.zip;

@jemminiz
Copy link
Contributor Author

Added support for ez::Piston::buttons, same testing applies.

@ssejrog ssejrog changed the title Added pros button support for piston::toggle ✨Added pros button support for piston::toggle Jan 2, 2025
@ssejrog
Copy link
Member

ssejrog commented Jan 2, 2025

Examples tested and work, ready to merge

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

Successfully merging this pull request may close these issues.

2 participants