public interface Temperature extends MetaWearController.ModuleController
Module.TEMPERATURE
Modifier and Type | Interface and Description |
---|---|
static class |
Temperature.Callbacks
Callbacks for temperature module
|
static class |
Temperature.Register
Enumeration of registers under the temperature module
|
static interface |
Temperature.SamplingConfig
Wrapper class to encapsulate the temperature sampling configuration attributes
|
static interface |
Temperature.SamplingConfigBuilder
Builder for creating a configuration for temperature sampling
|
Modifier and Type | Method and Description |
---|---|
void |
disableSampling()
Disables temperature sampling
|
void |
disableThermistorMode()
Disables thermistor mode
|
Temperature.SamplingConfigBuilder |
enableSampling()
Enables temperature sampling and event detection
|
void |
enableThermistorMode(byte analogReadPin,
byte pulldownPin)
Puts the board in thermistor mode, which uses the thermistor to measure the temperature
rather than the onboard temperature chip
|
void |
readSamplingConfig()
Read the temperature sampling configuration.
|
void |
readTemperature()
Read the temperature reported from MetaWear.
|
void readTemperature()
Temperature.Callbacks.receivedTemperature(float)
function
will be calledvoid readSamplingConfig()
Temperature.SamplingConfigBuilder enableSampling()
void disableSampling()
void enableThermistorMode(byte analogReadPin, byte pulldownPin)
analogReadPin
- GPIO pin the thermistor is attached topulldownPin
- GPIO pin that the pulldown resistor is attached tovoid disableThermistorMode()