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

Add library to read buttons #30

Open
6 tasks
margrevm opened this issue Oct 11, 2020 · 0 comments
Open
6 tasks

Add library to read buttons #30

margrevm opened this issue Oct 11, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Milestone

Comments

@margrevm
Copy link
Owner

margrevm commented Oct 11, 2020

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

@margrevm margrevm added enhancement New feature or request good first issue Good for newcomers labels Oct 11, 2020
@margrevm margrevm added this to the V1 milestone Oct 11, 2020
@margrevm margrevm added this to To do in Trollbot via automation Oct 11, 2020
@margrevm margrevm modified the milestones: V1, V0.1 Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant