-
Notifications
You must be signed in to change notification settings - Fork 7.7k
drivers: sensor: APDS9306: Lux conversion #91105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
drivers: sensor: APDS9306: Lux conversion #91105
Conversation
5f0816e
to
de5cd56
Compare
de5cd56
to
c11ac8b
Compare
There is a disconnect between A possible solution:
gain:
type: int
default: 1
enum:
- 1
- 3
- 6
- 9
- 18
.gain_idx = DT_INST_ENUM_IDX(inst, gain), \
value = config->gain_idx;
LOG_DBG("Write configuration 0x%x to register 0x%x", value, APDS9306_REGISTER_ALS_GAIN);
if (i2c_reg_write_byte_dt(&config->i2c, APDS9306_REGISTER_ALS_GAIN, value)) {
return -EFAULT;
} This should fix initialization, I believe. I can't comment about the conversion part though. |
3763659
to
e7adcf2
Compare
32d43b2
to
cfc2176
Compare
cfc2176
to
9145369
Compare
9145369
to
0c8b007
Compare
0c8b007
to
7b5baa1
Compare
6d60f42
to
1f2f3e1
Compare
1f2f3e1
to
90c9187
Compare
- Add lux conversion to APDS-9306 driver - Change settings of gain, resolution and frequency to index-based settings - Add Device Tree overlay sample for APDS-9306 - Fix wrong board name in light_polling README - Add value checks for the attribute set API call - Remove the reading of the sensor attributes from the sensor and use buffered values instead - Rename `frequency` property to `measurement period` Closes zephyrproject-rtos#91104 Signed-off-by: Daniel Kampert <[email protected]>
90c9187
to
dc0c04a
Compare
|
This comment was marked as outdated.
This comment was marked as outdated.
It probably won't make it in 4.2 anyway as it's now entered feature freeze, so no rush :) |
Adding the |
Thanks :) Edit: How can I remove the label? |
gain
,resolution
andfrequency
to index-based settingslight_polling
READMEfrequency
property tomeasurement period
Closes #91104