-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from OPEnSLab-OSU/SEN55
Merge SEN55 into main for Winter 2024 release
- Loading branch information
Showing
31 changed files
with
448 additions
and
41 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* This is an example use case for using the SEN55 Sensor | ||
* | ||
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE | ||
*/ | ||
#include <Loom_Manager.h> | ||
|
||
#include <Sensors/I2C/Loom_SEN55/Loom_SEN55.h> | ||
|
||
Manager manager("Device", 1); | ||
// Manager Reference, Whether or not we should measure particulate matter or nor | ||
Loom_SEN55 sen55(manager, true); | ||
|
||
void setup() { | ||
|
||
// Start the serial interface | ||
manager.beginSerial(); | ||
|
||
// Initialize the manager | ||
manager.initialize(); | ||
} | ||
|
||
void loop() { | ||
// Measure the data from the sensors | ||
manager.measure(); | ||
|
||
// Package the data into JSON | ||
manager.package(); | ||
|
||
// Print the JSON document to the Serial monitor | ||
manager.display_data(); | ||
|
||
// Wait for 5 seconds | ||
manager.pause(5000); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.