Change MT6701 I2C slave address #539
-
|
Hey guys, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @Janschnmnn you can use the That being said, what you've found (the Either of those options should work just fine for you, please feel free to reach back out here or via the |
Beta Was this translation helpful? Give feedback.
Hey @Janschnmnn you can use the
Mt6701::Config's.device_addressmember which is passed into theMt6701constructor to provide an alternative address for your hardware configuration if you're using it inI2Cmode.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 setauto_init = falsein theConfigand callset_addressafter you make the encoder object but before you manually callinitialize.Either of those options should work just fine for you, please feel free to reach back out here or via the
esppdiscord if you have any issues or questions :)