Skip to content

Conversation

@SukkoPera
Copy link
Owner

No description provided.

blemasle and others added 10 commits December 16, 2020 23:31
correct mixup of port names
ICON.ORD is set as 0 which denotes active driver rather than open-drain.
Added extra unimplemented bit comment to avoid confusion around
how the 7 used bits map to the byte.
Correct ICON Register init
* Add begin() method usual for Arduino driver libs and the supporting ctor.

* Begin without address argument shall use the ctor provided address, not reset it.

* Apply suggestions from code review

Cascade from `begin` with I2C address argument to `begin` w/o argument, it's clearer than calling `init()` from both places.

Co-authored-by: Bertrand Lemasle <blemasle@gmail.com>

Co-authored-by: Bertrand Lemasle <blemasle@gmail.com>
* Add enumeration with pin values for digitalWrite etc

* It is recommended not to use enum class if implicit cast to value is required. C++23 is said to provide a standard library helper, until then, for scoping, wrapping in a struct is recommended.

Co-authored-by: Bertrand Lemasle <blemasle@gmail.com>
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.

6 participants