-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressure #23
Pressure #23
Changes from all commits
237a75d
0f780fb
4c7c2a8
eed117f
e2eb7ec
4718ccb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <Adafruit_LPS35HW.h> | ||
|
||
Adafruit_LPS35HW lps35hw = Adafruit_LPS35HW(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
|
||
if (!lps35hw.begin_I2C()) { | ||
//if (!lps35hw.begin_SPI(LPS_CS)) { | ||
//if (!lps35hw.begin_SPI(LPS_CS, LPS_SCK, LPS_MISO, LPS_MOSI)) { | ||
Serial.println("Couldn't find LPS35HW chip"); | ||
while (1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cpplint] reported by reviewdog 🐶 |
||
} | ||
Serial.println("Found LPS35HW chip"); | ||
} | ||
|
||
void loop() { | ||
Serial.print("Temperature: "); | ||
Serial.print(lps35hw.readTemperature()); | ||
Serial.println(" C"); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cpplint] reported by reviewdog 🐶 |
||
Serial.print("Pressure: "); | ||
Serial.print(lps35hw.readPressure()); | ||
Serial.println(" hPa"); | ||
|
||
Serial.println(); | ||
delay(1000); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]