GroveTemperatureV12 class
The Grove temperature sensor.
The Grove Temperature Sensor(V1.2) uses a Thermistor to detect the ambient temperature.
The resistance of a thermistor will increase when the ambient temperature decreases. It's this characteristic that we use to calculate the ambient temperature.
The detectable range of this sensor is -40 - 125ºC, and the accuracy is ±1.5ºC
Constructors
- GroveTemperatureV12(Mraa _mraa, MraaAioContext _context)
- Construction
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- values → GroveTemperatureValues
-
Get the raw and Celsius temperature values and timestamp them.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- b → const int
- Thermistor nominal B constant, this is 4275 (default) for v1.1-v1.2 and 3975 for v1.0 of the sensor
- r0 → const int
- Zero power resistance, this is 100K (default) for v1.1-v1.2 and 10K for v1.0 of the sensor
- scale → const double
- Scaling factor for raw analog value from the ADC, useful for mixed 3.3V/5V boards, default 1.0