Module optical

Module optical 

Source

Structs§

optical_gesture_s_t
optical_raw_s_t
optical_rgb_s_t

Constants§

E_OPTICAL_DIRECTION_DOWN
E_OPTICAL_DIRECTION_ERROR
E_OPTICAL_DIRECTION_LEFT
E_OPTICAL_DIRECTION_NO_GESTURE
E_OPTICAL_DIRECTION_RIGHT
E_OPTICAL_DIRECTION_UP
OPT_COUNT_ERR
OPT_GESTURE_ERR
OPT_TIME_ERR

Functions§

optical_disable_gesture
Disable gesture detection on the sensor
optical_enable_gesture
Enable gesture detection on the sensor
optical_get_brightness
Get the detected color brightness
optical_get_gesture
Get the most recent gesture data from the sensor
optical_get_gesture_raw
Get the most recent raw gesture data from the sensor
optical_get_hue
Get the detected color hue
optical_get_integration_time
Get integration time (update rate) of the optical sensor in milliseconds, with minimum time being
optical_get_led_pwm
Get the pwm value of the White LED
optical_get_proximity
Get the detected proximity value
optical_get_raw
Get the raw, unprocessed RGBC data from the sensor
optical_get_rgb
Get the processed RGBC data from the sensor
optical_get_saturation
Get the detected color saturation
optical_set_integration_time
Set integration time (update rate) of the optical sensor in milliseconds.
optical_set_led_pwm
Set the pwm value of the White LED

Type Aliases§

optical_direction_e_t