adafruit / adafruit/node_mpr121
Support Multiple Buttons in the .on Method
Open
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
similar to #2, it would be helpful to support multiple buttons in the `.on` method by sending an array as the first arg:
``` js
// multiple buttons
mpr121.on([2, 3], () => console.log('pins 2 & 3 were pressed'));
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the library's `.on` entry point and review issue #2 for the related behavior. Done means the first argument accepts an array such as `[2, 3]`, the callback responds to either listed button, and the existing single-button form still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100