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

Specify adress of INA219 devices on bus #17

Open
Tobbera opened this issue Jun 14, 2021 · 2 comments
Open

Specify adress of INA219 devices on bus #17

Tobbera opened this issue Jun 14, 2021 · 2 comments

Comments

@Tobbera
Copy link

Tobbera commented Jun 14, 2021

Seems like I cant specify on what adress my INA219 devices are listening on the bus. There is a reference in the .h file but I cant find any documentation on how to use it.


class INA219
{
  public:

    ///I2C address definations.
    /// Adafruit breakout board have two jumppers to set unique
    /// address for each board ( in case there is more than one in Your system)
    /// base address is 0x40, no jumpers needed)
    enum t_i2caddr{
      I2C_ADDR_40 = 0x40, ///< address 0x40 no jumpers required.
      I2C_ADDR_41 = 0x41, ///< address 0x41 bridge A0.
      I2C_ADDR_44 = 0x44, ///< address 0x44 bridge A1.
      I2C_ADDR_45 = 0x45 ///< address 0x45 bridge A0 & A1.
    };
@Ceras
Copy link

Ceras commented Nov 24, 2023

It's a Very late answer, but in case someone else, like me, finds this and need the same info.

This worked for me:
INA219 monitor;
INA219 monitor2(INA219::I2C_ADDR_41);

@Tobbera
Copy link
Author

Tobbera commented Nov 25, 2023

Thanks! Will try when I get a chance.

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