Skip to content

Commit

Permalink
Merge pull request #44 from falkecarlsen/fix-sgp_41-library-bumps
Browse files Browse the repository at this point in the history
Airgradient and SGP41 version bump refactor
  • Loading branch information
geerlingguy authored Feb 14, 2024
2 parents 21180e7 + ca50a3e commit ebfa8d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/arduino.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ jobs:
- name: Install AirGradient Library
run: |
arduino-cli lib install "AirGradient Air Quality Sensor"
arduino-cli lib install "AirGradient Air Quality Sensor"@2.4.15
- name: Install Sensirion Core
run: |
arduino-cli lib install "Sensirion Core"
arduino-cli lib install "Sensirion Core"@0.6.0
# https://github.com/Sensirion/arduino-core/
- name: Install Sensirion I2C SGP41
run: |
arduino-cli lib install "Sensirion I2C SGP41"
arduino-cli lib install "Sensirion I2C SGP41"@1.0.0
# https://github.com/Sensirion/arduino-i2c-sgp41
- name: Install Sensirion Gas Index Algorithm
run: |
arduino-cli lib install "Sensirion Gas Index Algorithm"
arduino-cli lib install "Sensirion Gas Index Algorithm"@3.2.2
# https://github.com/Sensirion/arduino-gas-index-algorithm
- name: Install U8g2lib display library
run: |
arduino-cli lib install "U8g2"
arduino-cli lib install "U8g2"@2.34.22
# https://github.com/olikraus/u8g2
- name: Compile Sketch
Expand Down
2 changes: 1 addition & 1 deletion AirGradient-DIY/AirGradient-DIY.ino
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void setup() {

uint16_t error;
char errorMessage[256];
error = sgp41.getSerialNumber(serialNumber, serialNumberSize);
error = sgp41.getSerialNumber(serialNumber);

if (error) {
Serial.print("Error trying to execute getSerialNumber(): ");
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ This project configures the AirGradient sensor for local access (instead of deli

Please see the README file in the respective configuration folder for more information about how to set up your AirGradient sensor.

## Contributing
If you are adding a new library or bumping the version of an existing one, update the GitHub action [Arduino CI (`arduino.yaml`)](.github/workflows/arduino.yaml) accordingly.

## License

MIT.
Expand All @@ -27,6 +30,7 @@ MIT.

- [Jeff Geerling](https://www.jeffgeerling.com)
- [Jordan Jones](https://github.com/kashalls)
- [Falke Carlsen](https://github.com/falkecarlsen)

ESPHome configuration adapted from code by:

Expand Down

0 comments on commit ebfa8d0

Please sign in to comment.