[solved] ESP32 defiine 2 i2c channels in pins_arduino.h

I have created my own pins_arduino.h file for an esp32 varient which allows me access to one of the i2c channels, but the esp32 has 2 i2c channels.

How do i define the 2nd channel?

Is it as simple as just adding

static const uint8_t SDA1 = 21;
static const uint8_t SCL1 = 22;

as well as

static const uint8_t SDA = 21;
static const uint8_t SCL = 22;

That is a start. If you want to communicate over the second channel to a device, you will need to communicate to the object that is talking to the device which channel you want to use. Typically, you would do with in the begin() function for the given device. If you are just using the Wire library directly, it doesn't know anything about a second i2c channel.

blh64:
That is a start. If you want to communicate over the second channel to a device, you will need to communicate to the object that is talking to the device which channel you want to use. Typically, you would do with in the begin() function for the given device. If you are just using the Wire library directly, it doesn't know anything about a second i2c channel.

Thanks for looking in.
I don't know why the mods moved this here as it a setup and install question not a programming question.
I know that to communicate over two channels you have to define the second channel in the begin() function however this question is directly connected to the setup of a new device that appears in the "Device Manager" Menu.
If its not defined in pins_arduino.h it has to be defined in the program which then causes issues with other defines.

See here for some tips;

http://lmgtfy.com/?q=arduino+esp32+using+second+I2C+interface

srnet:
See here for some tips;

LMGTFY - Let Me Google That For You

Normally I would complain about that however, I have googled and was not typing the most accurate string of words to google.

Thanks dude for the search string.

AJB2K3:
Normally I would complain about that however

See "How to use this forum No. 4"

http://forum.arduino.cc/index.php/topic,148850.0.html

srnet:
See "How to use this forum No. 4"

http://forum.arduino.cc/index.php/topic,148850.0.html

I did, I spent two weeks searching and googling (and looking through sketches and arduino's referance.

Anyway I solved the issue.

The reason it didn't work was because the expected chips had not bee added to the device!
I opened the case up and found the footprints where the devices should have been.