Other Parts Discussed in Thread: MSP432P401R, , OPT3001, MSP432E401Y
I recently purchased the boosterpack BOOSTXL-EDUMKII. I have paired it with my MSP432P401R launchpad.
When I run the light sensor demo which ships with the SDK "simplelink_msp432p4_sdk_3_40_01_02", from the folder "examples\nortos\MSP_EXP432P401R\demos\boostxl_edumkii_lightsensor_msp432p401r" I see a constant output of 0 Lux regardless of how much light I shine on the Sensor. I also noticed that it takes almost 15 seconds for the 0 value to show up on the LCD from the time I run the program.
After setting up a GPIO toggle I see that most of those 15 seconds are consumed by Line #148 (OPT3001_getLux()). Specifically, most of this time is consumed by Line #94 in HAL_OPT3001.c (raw = I2C_read16(RESULT_REG)). And this always returns a 0x0000 regardless of how much ambient light is present. Is this normal?
Curious if anyone else faced such an issue out of the box. Any help will be greatly appreciated.