Search found 2 matches
- Tue Aug 08, 2023 10:56 pm
- Forum: ESP32 Arduino
- Topic: Sensiron SGP41 I2C code for Arduino
- Replies: 1
- Views: 1457
Re: Sensiron SGP41 I2C code for Arduino
Below is my code and the output. Code: #include <Arduino.h> #include <SensirionI2CSgp41.h> #include <Wire.h> SensirionI2CSgp41 sgp41; // time in seconds needed for NOx conditioning uint16_t conditioning_s = 10; void setup() { Serial.begin(115200); while (!Serial) { delay(100); } Wire.begin(6, 7); ui...
- Sat Aug 05, 2023 2:54 pm
- Forum: ESP32 Arduino
- Topic: Sensiron SGP41 I2C code for Arduino
- Replies: 1
- Views: 1457
Sensiron SGP41 I2C code for Arduino
Hello, I'm having trouble getting the following code from Sensiron working on my ESP32-S2 dev board. https://github.com/Sensirion/arduino-i2c-sgp41. I've made the following addition to the Sensiron code to setup the correct GPIOs for the I2C bus - Wire.begin(6, 7,100000); I believe the hardware is c...