Treehopper Java API
io.treehopper.libraries.sensors.temperature.Lm75 Class Reference

LM75 I2c temperature sensor. More...

Inheritance diagram for io.treehopper.libraries.sensors.temperature.Lm75:
io.treehopper.libraries.sensors.temperature.TemperatureSensor io.treehopper.libraries.sensors.temperature.Temperature io.treehopper.libraries.sensors.IPollable

Public Member Functions

 Lm75 (I2c device)
 
 Lm75 (I2c device, boolean a0, boolean a1, boolean a2)
 
 Lm75 (I2c device, byte address)
 
void update ()
 
double getCelsius ()
 
boolean isAutoUpdateWhenPropertyRead ()
 
void setAutoUpdateWhenPropertyRead (boolean value)
 
double getFahrenheit ()
 
double getKelvin ()
 

Static Public Member Functions

static double toKelvin (double celsius)
 
static double toFahrenheit (double celsius)
 

Protected Attributes

double celsius = 0
 

Detailed Description

LM75 I2c temperature sensor.

Constructor & Destructor Documentation

◆ Lm75() [1/3]

io.treehopper.libraries.sensors.temperature.Lm75.Lm75 ( I2c  device)

◆ Lm75() [2/3]

io.treehopper.libraries.sensors.temperature.Lm75.Lm75 ( I2c  device,
boolean  a0,
boolean  a1,
boolean  a2 
)

◆ Lm75() [3/3]

io.treehopper.libraries.sensors.temperature.Lm75.Lm75 ( I2c  device,
byte  address 
)

Member Function Documentation

◆ getCelsius()

double io.treehopper.libraries.sensors.temperature.TemperatureSensor.getCelsius ( )
inherited

◆ getFahrenheit()

double io.treehopper.libraries.sensors.temperature.TemperatureSensor.getFahrenheit ( )
inherited

◆ getKelvin()

double io.treehopper.libraries.sensors.temperature.TemperatureSensor.getKelvin ( )
inherited

◆ isAutoUpdateWhenPropertyRead()

boolean io.treehopper.libraries.sensors.temperature.TemperatureSensor.isAutoUpdateWhenPropertyRead ( )
inherited

◆ setAutoUpdateWhenPropertyRead()

void io.treehopper.libraries.sensors.temperature.TemperatureSensor.setAutoUpdateWhenPropertyRead ( boolean  value)
inherited

◆ toFahrenheit()

static double io.treehopper.libraries.sensors.temperature.TemperatureSensor.toFahrenheit ( double  celsius)
staticinherited

◆ toKelvin()

static double io.treehopper.libraries.sensors.temperature.TemperatureSensor.toKelvin ( double  celsius)
staticinherited

◆ update()

void io.treehopper.libraries.sensors.temperature.Lm75.update ( )

Member Data Documentation

◆ celsius

double io.treehopper.libraries.sensors.temperature.TemperatureSensor.celsius = 0
protectedinherited

The documentation for this class was generated from the following file: