Page 1 of 1

Only 4 I2C Addresses offered in the selection box for new INA219 devices

Posted: 02 Apr 2022, 15:20
by homAlix99
Hi all!
I wanted to add INA219 devices to ESPEasy. One of the given device has the bus address 0x42 and is properly recognized by I2C Scan option (under Tools), but for defining new I2C INA219 only the given addresses 0x40, 0x41, 0x44 and 0x45 are selectable, although the range of possible addresses is much bigger.
Is there a possiblility to adapt the selection box?

br

Alex

Re: Only 4 I2C Addresses offered in the selection box for new INA219 devices

Posted: 02 Apr 2022, 17:07
by Ath
Currently that plugin only supports these 4 most used I2C addresses, can you re-configure the board to use any of the supported addresses?

Re: Only 4 I2C Addresses offered in the selection box for new INA219 devices

Posted: 02 Apr 2022, 21:23
by Ath
homAlix99 wrote: 02 Apr 2022, 15:20 although the range of possible addresses is much bigger.
Is there a possiblility to adapt the selection box?
I've created a pull request #3994 to add support (and a documentation table) for all 16 possible I2C addresses.

Re: Only 4 I2C Addresses offered in the selection box for new INA219 devices

Posted: 03 Apr 2022, 20:49
by Ath
homAlix99 wrote: 02 Apr 2022, 15:20 Is there a possiblility to adapt the selection box?
The PR #3994 has been merged, you can get a test-build from the Github Actions pages, or wait for a next Releae of ESPEasy, where it will then be included.

Re: Only 4 I2C Addresses offered in the selection box for new INA219 devices

Posted: 04 Apr 2022, 14:32
by homAlix99
Thank you for the quick solution. Indeed, I need up to 7 I2C addresses, so it will be fine to select all of the 16 addresses.