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

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
homAlix99
New user
Posts: 2
Joined: 02 Mar 2021, 18:27

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

#1 Post by homAlix99 » 02 Apr 2022, 15:20

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

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#2 Post by Ath » 02 Apr 2022, 17:07

Currently that plugin only supports these 4 most used I2C addresses, can you re-configure the board to use any of the supported addresses?
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#3 Post by Ath » 02 Apr 2022, 21:23

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.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#4 Post by Ath » 03 Apr 2022, 20:49

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.
/Ton (PayPal.me)

homAlix99
New user
Posts: 2
Joined: 02 Mar 2021, 18:27

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

#5 Post by homAlix99 » 04 Apr 2022, 14:32

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests