Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions examples/Sensors/I2C/EZO/EZO-CO2/EZO-CO2.ino
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
/**
* EZO CO2 Sensor Example
*
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_EZOCO2/Loom_EZOCO2.h>


Manager manager("Device", 1);

// Manager Instance, Address, useMux
Loom_EZOCO2 ezoCO2(manager, 0x69, false);

void setup() {

void setup()
{
// Start the serial interface
manager.beginSerial();

// Initialize the manager
manager.initialize();

}

void loop() {

void loop()
{
// Measure and package the data from the sensors
manager.measure();

Expand All @@ -35,5 +40,4 @@ void loop() {

// Wait for 2 seconds
manager.pause(2000);

}
}
16 changes: 10 additions & 6 deletions examples/Sensors/I2C/EZO/EZO-DisOxygen/EZO-DisOxygen.ino
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
/**
* EZO Dissolved Oxygen Sensor Example
*
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_EZODO/Loom_EZODO.h>


Manager manager("Device", 1);

// Manager Instance, Address, useMux
Loom_EZODO ezoDO(manager, 0x61, false);

void setup() {

void setup()
{
// Start the serial interface
manager.beginSerial();

// Initialize the manager
manager.initialize();

manager.initialize();
}

void loop() {

void loop()
{
// Measure and package the data from the sensors
manager.measure();

Expand All @@ -35,5 +40,4 @@ void loop() {

// Wait for 2 seconds
manager.pause(2000);

}
16 changes: 10 additions & 6 deletions examples/Sensors/I2C/EZO/EZO-ORP/EZO-ORP.ino
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
/**
* EZO ORP Sensor Example
*
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_EZOORP/Loom_EZOORP.h>


Manager manager("Device", 1);

// Manager Instance, Address, useMux
Loom_EZOORP ezoORP(manager, 0x62, false);

void setup() {

void setup()
{
// Start the serial interface
manager.beginSerial();

// Initialize the manager
manager.initialize();

manager.initialize();
}

void loop() {

void loop()
{
// Measure and package the data from the sensors
manager.measure();

Expand All @@ -35,5 +40,4 @@ void loop() {

// Wait for 2 seconds
manager.pause(2000);

}
18 changes: 11 additions & 7 deletions examples/Sensors/I2C/EZO/EZO-PH/EZO-PH.ino
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
/**
* EZO PH Sensor Example
*
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_EZOPH/Loom_EZOPH.h>


Manager manager("Device", 1);

// Manager Instance, Address, useMux
Loom_EZOPH ezoPH(manager, 0x63, false);

void setup() {

void setup()
{
// Start the serial interface
manager.beginSerial();

// Initialize the manager
manager.initialize();

manager.initialize();
}

void loop() {

void loop()
{
// Measure and package the data from the sensors
manager.measure();

Expand All @@ -34,6 +39,5 @@ void loop() {
manager.display_data();

// Wait for 2 seconds
manager.pause(2000);

manager.pause(2000);
}
16 changes: 10 additions & 6 deletions examples/Sensors/I2C/EZO/EZO-RGB/EZO-RGB.ino
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
/**
* EZO RGB Sensor Example
*
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_EZORGB/Loom_EZORGB.h>


Manager manager("Device", 1);

// Manager Instance, Address, useMux
Loom_EZORGB ezoRGB(manager, 0x70, false);

void setup() {

void setup()
{
// Start the serial interface
manager.beginSerial();

// Initialize the manager
manager.initialize();

manager.initialize();
}

void loop() {

void loop()
{
// Measure and package the data from the sensors
manager.measure();

Expand All @@ -35,5 +40,4 @@ void loop() {

// Wait for 2 seconds
manager.pause(2000);

}
14 changes: 8 additions & 6 deletions examples/Sensors/I2C/K30/K30.ino
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
/**
* K30 Example code
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/


#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_K30/Loom_K30.h>


Manager manager("Device", 1);

// Reads the battery voltage
// Manger Instance, Address Enable Warmup, Value Multiplier
Loom_K30 k30(manager, false, 0x68, true, 1);

void setup() {

void setup()
{
// Start the serial interface and wait for the user to open the serial monitor
manager.beginSerial();

Expand All @@ -31,10 +33,10 @@ void setup() {

// Print the JSON document to the Serial monitor
manager.display_data();

}

void loop() {
// put your main code here, to run repeatedly:

void loop()
{
// put your main code here, to run repeatedly:
}
5 changes: 4 additions & 1 deletion examples/Sensors/I2C/T6793/T6793.ino
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/**
* This is an example use case for using the SEN55 Sensor
* This is an example use case for using the SEN55 Sensor.
* HARDWARE DEPRECATED - This sensor is no longer supported on the current
* board profile. Use at your own risk.
*
* MANAGER MUST BE INCLUDED FIRST IN ALL CODE
*/

#include <Loom_Manager.h>

#include <Sensors/I2C/Loom_T6793/Loom_T6793.h>
Expand Down
Loading
Loading