Set Mode for ambient light sensor Bluxv30b
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
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.
![](https://dfimg.dfrobot.com/6464ae4eaa9508d63a42db69/makelog/ec90ae53d2b839b20fffef91ae355c6d.png)
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
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
Yes, I seen.
I try use readMode() function to get current mode, but mode return always change, unstable.
![](https://dfimg.dfrobot.com/nobody/makelog/f50c6e147529eeeec7af8b5622a34f88.png)
So I don't sure that i set mode correctly.
Can you give a code to test read and set mode function?