public class LM73 extends Object implements ThermometerInterface, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
LM73.Configuration |
static class |
LM73.Resolution |
Constructor and Description |
---|
LM73(int controller,
LM73.Configuration config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
LM73.Configuration |
getConfiguration() |
LM73.Resolution |
getResolution() |
float |
getTemperature()
Get temperature in degrees celsius
|
boolean |
isDataAvailable() |
static void |
main(String[] args) |
float |
oneShotRead() |
void |
setPower(boolean on) |
void |
setResolution(LM73.Resolution resolution) |
public LM73(int controller, LM73.Configuration config)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public LM73.Configuration getConfiguration()
public LM73.Resolution getResolution()
public void setResolution(LM73.Resolution resolution)
public void setPower(boolean on)
public boolean isDataAvailable()
public float getTemperature() throws RuntimeIOException
ThermometerInterface
getTemperature
in interface ThermometerInterface
RuntimeIOException
- if an I/O error occurspublic float oneShotRead()
public static void main(String[] args)
Copyright © 2016–2017 mattjlewis. All rights reserved.