21 #ifndef ISL29125_PARAMS_H
22 #define ISL29125_PARAMS_H
35 #ifndef ISL29125_PARAM_I2C
36 #define ISL29125_PARAM_I2C I2C_DEV(0)
38 #ifndef ISL29125_PARAM_GPIO
39 #define ISL29125_PARAM_GPIO (GPIO_PIN(0, 0))
41 #ifndef ISL29125_PARAM_RANGE
42 #define ISL29125_PARAM_RANGE (ISL29125_RANGE_10K)
44 #ifndef ISL29125_PARAM_MODE
45 #define ISL29125_PARAM_MODE (ISL29125_MODE_RGB)
47 #ifndef ISL29125_PARAM_RES
48 #define ISL29125_PARAM_RES (ISL29125_RESOLUTION_16)
51 #ifndef ISL29125_PARAMS
52 #define ISL29125_PARAMS { .i2c = ISL29125_PARAM_I2C, \
53 .gpio = ISL29125_PARAM_GPIO, \
54 .range = ISL29125_PARAM_RANGE, \
55 .mode = ISL29125_PARAM_MODE, \
56 .res = ISL29125_PARAM_RES }
Device driver interface for the ISL29125 RGB light sensor.
static const isl29125_params_t isl29125_params[]
Allocate some memory to store the actual configuration.
Device parameters for ISL29125 sensors.