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

The begin() function is misleading. #2

Closed
uodukwe opened this issue Oct 10, 2019 · 1 comment
Closed

The begin() function is misleading. #2

uodukwe opened this issue Oct 10, 2019 · 1 comment

Comments

@uodukwe
Copy link

uodukwe commented Oct 10, 2019

In the .h file (Adafruit_MPRLS.h) at line 44 & 45, the begin() function has two arguments: uint8_t i2c_addr and TwoWire *twoWire.

I also see they were assigned:
i2c_addr is assigned to MPRLS_DEFAULT_ADDR
and
twoWire is de-referenced to Wire. Where is this 'Wire' defined or instantiated?
My common sense says it's from 'Wire.h'

@ladyada
Copy link
Member

ladyada commented Oct 10, 2019

@ladyada ladyada closed this as completed Oct 10, 2019
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

No branches or pull requests

2 participants