Set Mode for ambient light sensor Bluxv30b
Hi,
I am using bluxv30b sensor with Arm MCU. The data return OK from range 0-5000 lux, but light > 5000 lux then data return is overrange and it work at default mode.
I try use readMode() function to get current mode, but mode return always change, unstable.
SetMode() function have 3 parameters: isManualMode, isCDR and isTime
uint8_t setMode(uint8_t isManualMode=0,uint8_t isCDR=0,uint8_t isTime=0)
I don't clear for them. what is their mean? How to set mode right?
Thanks verry much!
I think you could find such data in the .h file in the Github: https://github.com/DFRobot/DFRobot_B_LUX_V30B/blob/master/DFRobot_B_LUX_V30B.h
Yeez_B
Yes, I seen.
I try use readMode() function to get current mode, but mode return always change, unstable.
So I don't sure that i set mode correctly.
Can you give a code to test read and set mode function?