ir
2.0.0.0
|
IR Click is an add-on board in mikroBUS form factor. It’s a compact and easy solution for adding infrared (IR) remote control module to your design.
We provide a library for the IR Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for IR Click driver.
ir_cfg_setup
Config Object Initialization function. ir_init
Initialization function. ir_get_an_state
IR get AN pin state function. ir_nec_send_command
IR NEC send data function. ir_nec_read_command
IR NEC data reading function. This is an example that demonstrates the use of the IR Click board.
The demo application is composed of two sections :
Initialization driver enables - GPIO and Log.
This example contains two parts :
- Transmitter mode - Sends data using NEC protocol.
- Receiver mode - Reads data that is been sent using NEC protocol and displaying it on the UART terminal.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.