2 sensors esp easy - esp12
Posted: Sunday 13 August 2017 0:00
How should I connect 2 sensors i2c ?
I have 1 now on the sda and scl and is working fine.
When I add an extra device it is giving me the same gpio pins I am already using. Can I connect the wires of both sensors together? Sounds strange but I don't know exactly.
I tried on other pins but nothing special happens.
BME-280 and BH1750 sensors.
Edit:
I found out that you can use rules to rule the gpio ports. I cant find a good example for ruling 2 sensors, does someone had an example for me?
I have 1 now on the sda and scl and is working fine.
When I add an extra device it is giving me the same gpio pins I am already using. Can I connect the wires of both sensors together? Sounds strange but I don't know exactly.
I tried on other pins but nothing special happens.
BME-280 and BH1750 sensors.
Edit:
I found out that you can use rules to rule the gpio ports. I cant find a good example for ruling 2 sensors, does someone had an example for me?