mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 06:23:07 +01:00
#71: add BMP280 and env IV to cibuild
This commit is contained in:
@@ -39,8 +39,7 @@ class BMP280Config : public IICSensorBase{
|
||||
}
|
||||
virtual bool isActive(){return prAct||tmAct;}
|
||||
virtual bool initDevice(GwApi *api,TwoWire *wire){
|
||||
GwLog *logger=api->getLogger();
|
||||
//Wire.begin(GWIIC_SDA,GWIIC_SCL);
|
||||
GwLog *logger=api->getLogger();
|
||||
device= new Adafruit_BMP280(wire);
|
||||
if (! device->begin(addr)){
|
||||
LOG_DEBUG(GwLog::ERROR,"unable to initialize %s at %d",prefix.c_str(),addr);
|
||||
|
||||
@@ -11,6 +11,17 @@ build_flags=
|
||||
-D M5_CAN_KIT
|
||||
${env.build_flags}
|
||||
|
||||
[env:m5stack-atom-env4]
|
||||
extends = sensors
|
||||
board = m5stack-atom
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
${sensors.lib_deps}
|
||||
build_flags=
|
||||
-D M5_ENV4
|
||||
-D M5_CAN_KIT
|
||||
${env.build_flags}
|
||||
|
||||
[env:m5stack-atom-bme280]
|
||||
extends = sensors
|
||||
board = m5stack-atom
|
||||
@@ -43,7 +54,6 @@ lib_deps =
|
||||
${env.lib_deps}
|
||||
${sensors.lib_deps}
|
||||
build_flags=
|
||||
#-D M5_ENVBPS
|
||||
-D GWBMP280
|
||||
-D M5_GROOVEIIC
|
||||
-D M5_CAN_KIT
|
||||
|
||||
Reference in New Issue
Block a user