Skip to content
Discussion options

You must be logged in to vote

Hey @Janschnmnn you can use the Mt6701::Config's .device_address member which is passed into the Mt6701 constructor to provide an alternative address for your hardware configuration if you're using it in I2C mode.

That being said, what you've found (the set_address(...) member of the base class) does also work, though if you use that case, then ensure you set auto_init = false in the Config and call set_address after you make the encoder object but before you manually call initialize.

Either of those options should work just fine for you, please feel free to reach back out here or via the espp discord if you have any issues or questions :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@finger563
Comment options

@finger563
Comment options

Answer selected by finger563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants