Microchip® Advanced Software Framework

s_light.h File Reference
#include "compiler.h"

Functions

bool b_light_get_value (char *buf, U32 *result)
 Get the current light sensor value. More...
 

bool b_light_get_value ( char *  buf,
U32 result 
)

Get the current light sensor value.

Parameters
bufchar buffer in which the light sensor value is stored.
resultreturns the light sensor value.
Returns
true upon success, false if error.

References adc, adc_disable(), adc_enable(), adc_get_value(), ADC_LIGHT_CHANNEL, ADC_MAX_VALUE, and adc_start().

Referenced by device_full_custom_task().