You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (mode)
this->config |= 1; // Go to sleep
else
this->config &= 254; // Wake up
this->write16(VEML6075_REG_CONF, this->config);
}`
I cannot test today, but the code seems fine to me as the datasheet state that bit 0 of command register 00 as "SD" bit (ShutDown):
enable = 0 , Shutdown = 1
If possible, I would suggest to replace value with hex: 0xFE is more clear than 254 in such situation (imho)
The text was updated successfully, but these errors were encountered:
Hi!
I found a "sleep" function for VEML6075 in my code but cannot remember how I get this.
Currently, I do not see any sleep function in the library.
Could we add this ? (I'm too noob to dare pull some request or whatever, I have no idea how to do it)
I found a piece of code in this forum:
https://forum.mysensors.org/topic/6952/veml6070-and-veml6075-uv-sensors/25
in the .h:
void sleep(bool mode);
in the .cpp:
`void VEML6075::sleep(bool mode) {
}`
I cannot test today, but the code seems fine to me as the datasheet state that bit 0 of command register 00 as "SD" bit (ShutDown):
enable = 0 , Shutdown = 1
If possible, I would suggest to replace value with hex: 0xFE is more clear than 254 in such situation (imho)
The text was updated successfully, but these errors were encountered: