expand6
2.0.0.0
|
EXPAND 6 Click is a compact add-on board that contains an I2C configurable multi-port I/O expander with independently configurable pins as bi-directional input/outputs or PWM outputs.
We provide a library for the Expand6 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Expand6 Click driver.
void expand6_cfg_setup ( expand6_cfg_t *cfg );
EXPAND6_RETVAL expand6_init ( expand6_t *ctx, expand6_cfg_t *cfg );
void expand6_write_port ( expand6_t *ctx, uint8_t port, uint8_t value );
void expand6_reset ( expand6_t *ctx );
void expand6_write_pin ( expand6_t *ctx, uint16_t pin, uint8_t pin_val );
This example demonstrates the use of EXPAND 6 click board.
The demo application is composed of two sections :
Initalizes I2C driver and makes an initial log.
This example shows the capabilities of the EXPAND 6 click by toggling each of the 20 available pins.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.