Skip to content

Commit 621aff8

Browse files
authored
Merge pull request #172 from roberbike/devel
cambio direccion i2c nh3 y co
2 parents dd2d828 + 7158923 commit 621aff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sensors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ void Sensors::GCJA5Init() {
15801580

15811581
void Sensors::DFRobotCOInit() {
15821582
sensorAnnounce(SENSORS::SDFRCO);
1583-
dfrCO = DFRobot_GAS_I2C(&Wire, 0x74);
1583+
dfrCO = DFRobot_GAS_I2C(&Wire, 0x78); // Be sure that your group of i2c address is 7
15841584
if (!dfrCO.begin()) return;
15851585
//Mode of obtaining data: the main controller needs to request the sensor for data
15861586
dfrCO.changeAcquireMode(dfrCO.PASSIVITY);
@@ -1591,7 +1591,7 @@ void Sensors::DFRobotCOInit() {
15911591

15921592
void Sensors::DFRobotNH3Init() {
15931593
sensorAnnounce(SENSORS::SDFRNH3);
1594-
dfrNH3 = DFRobot_GAS_I2C(&Wire, 0x76); // 0x77 y 0x75 used by bme680
1594+
dfrNH3 = DFRobot_GAS_I2C(&Wire, 0x7A); // 0x77 y 0x75 used by bme680. Be sure that your group of i2c address is 7
15951595
if (!dfrNH3.begin()) return;
15961596
//Mode of obtaining data: the main controller needs to request the sensor for data
15971597
dfrNH3.changeAcquireMode(dfrNH3.PASSIVITY);

0 commit comments

Comments
 (0)