Merge branch 'develop' of https://github.com/airgradienthq/arduino into develop

This commit is contained in:
Phat Nguyen
2024-04-25 06:49:18 +07:00
7 changed files with 148 additions and 9 deletions

View File

@ -5,8 +5,6 @@
#include "WiFi.h"
#endif
#define AG_LIB_VER "3.0.10beta2"
AirGradient::AirGradient(BoardType type)
: pms5003(type), pms5003t_1(type), pms5003t_2(type), s8(type), sgp41(type),
display(type), boardType(type), button(type), statusLed(type),
@ -38,7 +36,7 @@ int AirGradient::getI2cSclPin(void) {
return bsp->I2C.scl_pin;
}
String AirGradient::getVersion(void) { return AG_LIB_VER; }
String AirGradient::getVersion(void) { return GIT_VERSION; }
BoardType AirGradient::getBoardType(void) { return boardType; }

View File

@ -13,6 +13,10 @@
#include "Sgp41/Sgp41.h"
#include "Sht/Sht.h"
#ifndef GIT_VERSION
#define GIT_VERSION "snapshot"
#endif
/**
* @brief Class with define all the sensor has supported by Airgradient. Each
* sensor usage must be init before use.