#include <src/sensors/AtlasScientificpH.h>
AtlasScientificpH
class
The Sensor sub-class for the Atlas Scientific pH sensor.
- Reference
- Detailed Descriptions
Base classes
- class AtlasParent
- A parent class for Atlas EZO circuits and sensors.
Constructors, destructors, conversion operators
- AtlasScientificpH(TwoWire* theI2C, int8_t powerPin, uint8_t i2cAddressHex = 0x63, uint8_t measurementsToAverage = 1)
- Construct a new Atlas Scientific pH object using a secondary hardware I2C instance.
- AtlasScientificpH(int8_t powerPin, uint8_t i2cAddressHex = 0x63, uint8_t measurementsToAverage = 1) explicit
- Construct a new Atlas Scientific pH object using the primary hardware I2C instance.
- ~AtlasScientificpH()
- Destroy the Atlas Scientific pH object.
Function documentation
AtlasScientificpH:: AtlasScientificpH(TwoWire* theI2C,
int8_t powerPin,
uint8_t i2cAddressHex = 0x63,
uint8_t measurementsToAverage = 1)
Construct a new Atlas Scientific pH object using a secondary hardware I2C instance.
Parameters | |
---|---|
theI2C | A TwoWire instance for I2C communication. Due to the limitations of the Arduino core, only a hardware I2C instance can be used. For an AVR board, there is only one I2C instance possible and this form of the constructor should not be used. For a SAMD board, this can be used if a secondary I2C port is created on one of the extra SERCOMs. |
powerPin | The pin on the mcu controlling powering to the Atlas pH circuit. Use -1 if it is continuously powered.
|
i2cAddressHex | The I2C address of the Atlas circuit; optional with the Atlas-supplied default address of 0x63. |
measurementsToAverage | The number of measurements to take and average before giving a "final" result from the sensor; optional with a default value of 1. |
AtlasScientificpH:: AtlasScientificpH(int8_t powerPin,
uint8_t i2cAddressHex = 0x63,
uint8_t measurementsToAverage = 1) explicit
Construct a new Atlas Scientific pH object using the primary hardware I2C instance.
Parameters | |
---|---|
powerPin | The pin on the mcu controlling powering to the Atlas pH circuit. Use -1 if it is continuously powered.
|
i2cAddressHex | The I2C address of the Atlas circuit; optional with the Atlas-supplied default address of 0x63. |
measurementsToAverage | The number of measurements to take and average before giving a "final" result from the sensor; optional with a default value of 1. |