Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for character input ('A','B','C') inisPressed()#33

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

AntonioBerna
Copy link
Contributor

This PR adds the ability to callisPressed() using either numeric indices (0–2) or the character/string identifiers'A','B', and'C', aligning with the button labels.

This makes user code more intuitive when referencing button inputs.

Fixes#3

Added support for character and string-based input to `isPressed()` in `ModulinoButtons`,so it now accepts both index (0–2) and letter identifiers (`'A'`, `'B'`, `'C'`) matchingthe physical button labeling.Closesarduino-libraries#3
@CLAassistant
Copy link

CLAassistant commentedApr 30, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

@per1234per1234 added the enhancementNew feature or request labelApr 30, 2025
@leonardocavagnis
Copy link
Contributor

@AntonioBerna Thanks for contribution!
Please, update theapi.md file with new APIs

AntonioBerna reacted with thumbs up emoji

@AntonioBerna
Copy link
ContributorAuthor

@leonardocavagnis with commitb8a67c7 I complete the update ofapi.md file.

@leonardocavagnisleonardocavagnis merged commit9c948fe intoarduino-libraries:mainMay 9, 2025
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@leonardocavagnisleonardocavagnisleonardocavagnis requested changes

Assignees
No one assigned
Labels
enhancementNew feature or request
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add the possibility to address buttons with letters
4 participants
@AntonioBerna@CLAassistant@leonardocavagnis@per1234

[8]ページ先頭

©2009-2025 Movatter.jp