32 #include "upm_types.h" 34 #include "bh1750_defs.h" 141 BH1750_OPMODES_T mode);
145 #endif // __cplusplus upm_result_t bh1750_set_opmode(const bh1750_context dev, BH1750_OPMODES_T mode)
Definition: bh1750.c:223
bh1750_context bh1750_init(int bus, uint8_t addr, BH1750_OPMODES_T mode)
Definition: bh1750.c:31
upm_result_t bh1750_get_lux(const bh1750_context dev, float *lux)
Definition: bh1750.c:96
bool bh1750_power_down(const bh1750_context dev)
Definition: bh1750.c:133
upm_result_t bh1750_read_data(const bh1750_context dev, uint16_t *data)
Definition: bh1750.c:175
upm_result_t bh1750_send_command(const bh1750_context dev, uint8_t cmd)
Definition: bh1750.c:161
bool bh1750_power_up(const bh1750_context dev)
Definition: bh1750.c:119
struct _bh1750_context * bh1750_context
bool bh1750_reset(const bh1750_context dev)
Definition: bh1750.c:147
void bh1750_close(const bh1750_context dev)
Definition: bh1750.c:86