Skip to content

unit: Add SimpleDualButtonUnit for callback-free polling#103

Open
amin45mh wants to merge 2 commits into
m5stack:masterfrom
amin45mh:feature/simpledualbutton
Open

unit: Add SimpleDualButtonUnit for callback-free polling#103
amin45mh wants to merge 2 commits into
m5stack:masterfrom
amin45mh:feature/simpledualbutton

Conversation

@amin45mh

@amin45mh amin45mh commented Jul 7, 2026

Copy link
Copy Markdown

Add SimpleButton class and SimpleDualButtonUnit factory that wrap machine.Pin directly, providing simple polling methods (value, is_active, was_pressed, was_released) without requiring tick() or callbacks. The existing DualButtonUnit is unchanged.

amin45mh and others added 2 commits July 7, 2026 11:41
Add SimpleButton class and SimpleDualButtonUnit factory that wrap machine.Pin directly, providing simple polling methods (value, is_active, was_pressed, was_released) without requiring tick() or callbacks. The existing DualButtonUnit is unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant