adamboardman / pico-mcp23017

Raspberry Pi Pico MCP23017 16-Bit I/O Expander with I2C Serial Interface
Apache License 2.0
17 stars 8 forks source link

Make most methods const. Add method to get all pin values in one go. #3

Closed jonathangjertsen closed 1 year ago

jonathangjertsen commented 2 years ago

Making methods const where applicable allows for the object to be passed by const reference or pointer most of the time.

Having access to all pin values in one variable was more convenient for my usage.