ir2 2.0.0.0
|
IR2 Click example. More...
Macros | |
#define | IR2_TRANSMITTER_MODE |
#define | IR2_ADDRESS 0xAB |
#define | IR2_DATA "MikroE - IR 2 click board\r\n" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
IR2 Click example.
This example demonstrates the use of an IR 2 click board by showing the communication between the two click boards configured as a receiver and transmitter using the NEC protocol.
The demo application is composed of two sections :
Initializes the driver and logger and displays the selected application mode.
Depending on the selected mode, it sends a desired message using NEC protocol or reads all the received data and displays them on the USB UART.
#define IR2_ADDRESS 0xAB |
#define IR2_DATA "MikroE - IR 2 click board\r\n" |
#define IR2_TRANSMITTER_MODE |
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 | ) |