public static enum BH1750.Mode extends Enum<BH1750.Mode>
Enum Constant and Description |
---|
CONTINUOUS_HIGH_RES_MODE |
CONTINUOUS_HIGH_RES_MODE_2 |
CONTINUOUS_LOW_RES_MODE |
ONE_TIME_HIGH_RES_MODE |
ONE_TIME_HIGH_RES_MODE_2 |
ONE_TIME_LOW_RES_MODE |
Modifier and Type | Method and Description |
---|---|
byte |
getCommand() |
int |
getMeasurementTimeMs() |
static BH1750.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BH1750.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BH1750.Mode CONTINUOUS_HIGH_RES_MODE
public static final BH1750.Mode CONTINUOUS_HIGH_RES_MODE_2
public static final BH1750.Mode CONTINUOUS_LOW_RES_MODE
public static final BH1750.Mode ONE_TIME_HIGH_RES_MODE
public static final BH1750.Mode ONE_TIME_HIGH_RES_MODE_2
public static final BH1750.Mode ONE_TIME_LOW_RES_MODE
public static BH1750.Mode[] values()
for (BH1750.Mode c : BH1750.Mode.values()) System.out.println(c);
public static BH1750.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getCommand()
public int getMeasurementTimeMs()
Copyright © 2016–2018 mattjlewis. All rights reserved.