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

Mcp23017 driver update #19

Closed
wants to merge 18 commits into from
Closed

Mcp23017 driver update #19

wants to merge 18 commits into from

Conversation

Kalsifer-742
Copy link
Contributor

No description provided.

GET_VALUE_ON_PIN(function_name, REGISTER_A, REGISTER_B) \
SET_VALUE_ON_PIN(function_name, REGISTER_A, REGISTER_B) \

/// This struct rapresents the MCP23017 device
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

* @struct MCP23017_t
* @brief rapresents the MCP23017 device
*/
#define GET_VALUE_ON_PIN(function_name, REGISTER_A, REGISTER_B) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use the macros, make sure that the user usage is very simple.

int regvalue = GET_REGVALUE(GPPUA);
SET_REGVALUE(GPPUA, 0xA4);

Otherwise it is very complicated to use this driver.

@gmazzucchi gmazzucchi deleted the mcp23017-driver-update branch February 22, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants