Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreGrue committed Nov 14, 2024
1 parent 7458700 commit 3378a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ void setup() {
if (Pressure.initialize(andrgrue::sensor::st_lps22hb::Rate::RATE_50HZ)) {
// Option 3. Continuous mode - polling of interrupt pin to trigger sensor measurements
// need to specify interrupt pin
if (Pressure.initialize(andrgrue::sensor::st_lps22hb::Rate::RATE_50HZ, p12)) {
if (Pressure.initialize(andrgrue::sensor::st_lps22hb::Rate::RATE_50HZ, andrgrue::sensor::st_lps22hb::LowPassFilter::LPF_9, p12)) {
// Option 4. Continuous mode - use interrupt handler to trigger sensor measurements
// need to specify interrupt pin and interrupt handler
if (Pressure.initialize(andrgrue::sensor::st_lps22hb::Rate::RATE_50HZ, p12, pressure_interrupt_handler)) {
if (Pressure.initialize(andrgrue::sensor::st_lps22hb::Rate::RATE_50HZ, andrgrue::sensor::st_lps22hb::LowPassFilter::LPF_20, p12, pressure_interrupt_handler)) {
Serial.println("LPS22HB Pressure Sensor found.");
}
else {
Expand Down
1 change: 1 addition & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

st_lps22hb KEYWORD1
Rate KEYWORD1
LowPassFilter KEYWORD1
Data KEYWORD1

#######################################
Expand Down

0 comments on commit 3378a28

Please sign in to comment.