margrevm / margrevm/trollbot

Add library to read buttons

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Design:
Add Abstract class: ButtonAction <- SpecificButtonAction
- Contains an abstract "handle_button_press" function

Add function to register a Button action on a specific button

Add function that detects button presses every x ms and executes corresponding button actions.

Steps:
- [ ] Design
- [ ] Code
- [ ] unit tests
- [ ] Add documentation:
- [ ] Hardware design
- [ ] Software design


Use Bounce myButton = Bounce(2, 10); // pushbutton on pin 2

Example here:https://github.com/pfeerick/elapsedMillis/wiki

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the requested ButtonAction abstraction, button registration, polling interval, and the referenced Bounce example for Arduino. Define the hardware and software designs, implement the library, add unit tests, and complete the requested hardware and software documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot, robotics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.