Skip to content

Commit

Permalink
improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Sep 20, 2023
1 parent 83e5f76 commit 5840bbc
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 161 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void setup() {
sensors.setSeaLevelPressure(1036.25); // [optional] Set sea level pressure in hpa
sensors.setDebugMode(false); // [optional] debug mode to get detailed msgs
sensors.detectI2COnly(true); // [optional] force to only i2c sensors
sensors.setTemperatureUnit(TEMPUNIT::KELVIN); // comment it for Celsius or set Fahrenheit
sensors.init(); // Auto detection to UART and i2c sensors

// Alternatives only for UART sensors (TX/RX):
Expand All @@ -144,8 +145,6 @@ void setup() {
// sensors.init(SENSORS::SAIRS8); // Force UART detection to SenseAirS8 CO2 sensor
// sensors.init(SENSORS::Auto,PMS_RX,PMS_TX); // Auto detection on custom RX,TX



// Also you can access to sub-library objects, and perform for example calls like next:

// sensors.sps30.sleep()
Expand Down
Loading

0 comments on commit 5840bbc

Please sign in to comment.