Skip to content

Commit

Permalink
Merge pull request #172 from roberbike/devel
Browse files Browse the repository at this point in the history
cambio direccion i2c nh3 y co
  • Loading branch information
hpsaturn authored Jun 17, 2023
2 parents dd2d828 + 7158923 commit 621aff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ void Sensors::GCJA5Init() {

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

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

0 comments on commit 621aff8

Please sign in to comment.