<< return to Pixycam.com

How to manually set I2C address on Arduino sketch?

I want to use 2 Pixies and Arduino connected using I2C

Hello,
You can set the address in the constructor, for example:

Pixy2I2C pixy(0x20); // set address to 0x20

Hope this helps!

Edward

Hello, it does not work.

Hello,
My mistake. For PIxy2 you need to pass the I2C address into the init function:

pixy.init(0x20);

Edward

1 Like

Thank you

1 Like