Digital color sensor API.
More...
Digital color sensor API.
Function for initializing the color sensor.
- Parameters
-
[in] | p_init | Pointer to the driver configuration. |
- Returns
- NRF_SUCCESS Completed successfully.
-
Other codes from the underlying drivers.
uint32_t drv_color_sample |
( |
void |
| ) |
|
Function for acquiring a sample from the color sensor.
- Note
- The sensor will give a pin interrupt when finished, which is in turn caught by the gpiote_evt_handler.
- Returns
- NRF_SUCCESS Completed successfully.
-
Other codes from the underlying drivers.
uint32_t drv_color_start |
( |
void |
| ) |
|
Function for starting the color sensor.
- Returns
- NRF_SUCCESS Completed successfully.
-
Other codes from the underlying drivers.
uint32_t drv_color_stop |
( |
void |
| ) |
|
Function for stopping the color sensor.
- Returns
- NRF_SUCCESS Completed successfully.
-
Other codes from the underlying drivers.