public class BH1750 extends Object implements LuminositySensorInterface, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
BH1750.Mode |
Constructor and Description |
---|
BH1750(int controller) |
BH1750(int controller,
int address) |
BH1750(int controller,
int address,
BH1750.Mode mode) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
float |
getLuminosity() |
BH1750.Mode |
getMode() |
void |
reset() |
void |
setMode(BH1750.Mode mode) |
public BH1750(int controller)
public BH1750(int controller, int address)
public BH1750(int controller, int address, BH1750.Mode mode)
public void close()
close
in interface SensorInterface
close
in interface Closeable
close
in interface AutoCloseable
public BH1750.Mode getMode()
public void setMode(BH1750.Mode mode)
public void reset()
public float getLuminosity() throws RuntimeIOException
getLuminosity
in interface LuminositySensorInterface
RuntimeIOException
Copyright © 2016–2018 mattjlewis. All rights reserved.