rotaryw2 2.1.0.0
|
Rotary W 2 Click example. More...
Macros | |
#define | ROTARYW2_ONE_LED ROTARYW2_SET_LED_DATA_1 |
#define | ROTARYW2_TWO_LED ROTARYW2_SET_LED_DATA_1 | ROTARYW2_SET_LED_DATA_9 |
#define | ROTARYW2_FOUR_LED |
#define | ROTARYW2_EIGHT_LED |
#define | ROTARYW2_EIGHT_LED_INV |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Rotary W 2 Click example.
This library contains the API for the Rotary W 2 Click driver to control LEDs states and a rotary encoder position readings.
The demo application is composed of two sections :
Initialization of SPI module and log UART. After the driver init, the app executes a default configuration and turn off all LEDs.
This example demonstrates the use of the Rotary W 2 Click boardâ„¢. The demo example shows the functionality of a rotary encoder used to control LEDs.
#define ROTARYW2_EIGHT_LED |
#define ROTARYW2_EIGHT_LED_INV |
#define ROTARYW2_FOUR_LED |
#define ROTARYW2_ONE_LED ROTARYW2_SET_LED_DATA_1 |
#define ROTARYW2_TWO_LED ROTARYW2_SET_LED_DATA_1 | ROTARYW2_SET_LED_DATA_9 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |