spectral3 2.0.0.0
|
Spectral3 Click example. More...
Macros | |
#define | PROCESS_COUNTER 10 |
#define | PROCESS_RX_BUFFER_SIZE 200 |
#define | PROCESS_PARSER_BUFFER_SIZE 400 |
#define | SPECTRAL3_CMD_DATA "ATDATA" |
#define | SPECTRAL3_CMD_AT "AT" |
#define | SPECTRAL3_CMD_GAIN "ATGAIN=2" |
#define | SPECTRAL3_CMD_MODE "ATTCSMD=2" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Spectral3 Click example.
This example reads and processes data from Spectral 3 clicks.
The demo application is composed of two sections :
Initializes the driver and configures the sensor.
Reads the values of all 6 channels and parses it to the USB UART each second.
#define PROCESS_COUNTER 10 |
#define PROCESS_PARSER_BUFFER_SIZE 400 |
#define PROCESS_RX_BUFFER_SIZE 200 |
#define SPECTRAL3_CMD_AT "AT" |
#define SPECTRAL3_CMD_DATA "ATDATA" |
#define SPECTRAL3_CMD_GAIN "ATGAIN=2" |
#define SPECTRAL3_CMD_MODE "ATTCSMD=2" |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |