opto 2.0.0.0
|
OPTO Click example. More...
Functions | |
void | opto_set_logger (uint8_t sel_out1, uint8_t sel_out2, uint8_t sel_out3, uint8_t sel_out4) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | sel_output |
uint8_t | check_output |
uint8_t | cnt |
uint8_t | tmp |
OPTO Click example.
This application checks the state of selected inputs and prints it.
The demo application is composed of two sections :
Initialization driver enables GPIO and also starts write log.
This example demonstrates the use of OPTO Click board by performing the check procedure for selected outputs and displays the results on USART terminal.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
void opto_set_logger | ( | uint8_t | sel_out1, |
uint8_t | sel_out2, | ||
uint8_t | sel_out3, | ||
uint8_t | sel_out4 ) |
uint8_t check_output |
uint8_t cnt |
uint8_t sel_output |
uint8_t tmp |