mirror of
https://github.com/wled/WLED.git
synced 2025-04-19 12:27:17 +00:00
Defining more usermod dependencies
This commit is contained in:
parent
79bac912aa
commit
d3eec72e45
@ -118,23 +118,6 @@ Methods also exist to read the read/calculated values from other WLED modules th
|
||||
- getStabStatus();
|
||||
- getRunInStatus();
|
||||
|
||||
|
||||
## Compiling
|
||||
|
||||
To enable, compile with `USERMOD_BME68X` defined (e.g. in `platformio_override.ini`) and add the `BSEC Software Library` to the lib_deps.
|
||||
|
||||
```
|
||||
[env:esp32-BME680]
|
||||
board = esp32dev
|
||||
platform = ${esp32.platform}
|
||||
platform_packages = ${esp32.platform_packages}
|
||||
lib_deps = ${esp32.lib_deps}
|
||||
boschsensortec/BSEC Software Library @ ^1.8.1492 ; USERMOD: BME680
|
||||
build_unflags = ${common.build_unflags}
|
||||
build_flags = ${common.build_flags_esp32}
|
||||
-D USERMOD_BME68X ; USERMOD: BME680
|
||||
```
|
||||
|
||||
## Revision History
|
||||
### Version 1.0.0
|
||||
- First version of the BME68X_v user module
|
||||
|
@ -5,5 +5,8 @@
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": {
|
||||
"boschsensortec/BSEC Software Library":"^1.8.1492"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,8 @@
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": {
|
||||
"arduino-pixels-dice":"https://github.com/axlan/arduino-pixels-dice.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,8 @@
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": {
|
||||
"bitbank2/PNGdec":"^1.0.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,9 @@
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"adafruit/Adafruit BMP280 Library":"2.1.0",
|
||||
"adafruit/Adafruit CCS811 Library":"1.0.4",
|
||||
"adafruit/Adafruit Si7021 Library":"1.4.0
|
||||
}
|
||||
|
@ -60,25 +60,6 @@ SCL_PIN = 5;
|
||||
SDA_PIN = 4;
|
||||
```
|
||||
|
||||
## Enable in WLED
|
||||
|
||||
1. Copy `usermod_v2_SensorsToMqtt.h` into the `wled00` directory.
|
||||
2. Add to `build_flags` in platformio.ini:
|
||||
|
||||
```
|
||||
-D USERMOD_SENSORSTOMQTT
|
||||
```
|
||||
|
||||
3. And add to `lib_deps` in platformio.ini:
|
||||
|
||||
```
|
||||
adafruit/Adafruit BMP280 Library @ 2.1.0
|
||||
adafruit/Adafruit CCS811 Library @ 1.0.4
|
||||
adafruit/Adafruit Si7021 Library @ 1.4.0
|
||||
```
|
||||
|
||||
The #ifdefs in `usermods_list.cpp` should do the rest
|
||||
|
||||
# Credits
|
||||
|
||||
- Aircoookie for making WLED
|
||||
|
@ -5,5 +5,8 @@
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": {
|
||||
"WireGuard-ESP32-Arduino":"https://github.com/kienvu58/WireGuard-ESP32-Arduino.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Example PlatformIO Project Configuration Override for WireGuard
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copy to platformio_override.ini to activate.
|
||||
# ------------------------------------------------------------------------------
|
||||
# Please visit documentation: https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[platformio]
|
||||
default_envs = WLED_ESP32-WireGuard
|
||||
|
||||
[env:WLED_ESP32-WireGuard]
|
||||
board = esp32dev
|
||||
platform = ${esp32.platform}
|
||||
platform_packages = ${esp32.platform_packages}
|
||||
build_unflags = ${common.build_unflags}
|
||||
build_flags = ${common.build_flags_esp32}
|
||||
-D WLED_RELEASE_NAME=ESP32-WireGuard
|
||||
-D USERMOD_WIREGUARD
|
||||
lib_deps = ${esp32.lib_deps}
|
||||
https://github.com/kienvu58/WireGuard-ESP32-Arduino.git
|
||||
monitor_filters = esp32_exception_decoder
|
||||
board_build.partitions = ${esp32.default_partitions}
|
||||
upload_speed = 921600
|
Loading…
x
Reference in New Issue
Block a user