adafruit / adafruit/Adafruit-MCP23017-Arduino-Library
Bulk set gpio direction support
- Dominant language
- C++
- Stars
- 385
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Hello would it be possible to add a function for bulk setting of INPUT/OUTPUT of the GPIO? im currently using 5 of these and 80 lines of code is used up for just setting the direction of the GPIO, i mean its not really a bad thing, just to make the code cleaner to look at. Alternatively having a function to read/write register directly would also be good as i can do the bulk setting of gpio direction there.
Thanks ! :)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the library's existing GPIO direction entry points and reviewing how INPUT/OUTPUT calls are exposed. Decide whether the change should provide a bulk direction API or direct register access, then verify that the chosen interface removes repeated per-pin setup without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, cpp
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100