bletiny
2.0.0.0
|
BLE TINY Click is a compact add-on board that provides BLE connectivity for any embedded application. This board features the DA14531, SmartBond TINY module based on the world’s smallest and lowest power Bluetooth 5.1 System-on-Chip (SoC) from Dialog Semiconductor.
We provide a library for the BLETINY 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 BLETINY Click driver.
bletiny_cfg_setup
Config Object Initialization function. bletiny_init
Initialization function. bletiny_default_cfg
Click Default Configuration function. bletiny_send_cmd
Send command function. bletiny_i2c_config
Configure Click board for I2C master communication. bletiny_i2c_write
Send command to write data to reg address of slave device via I2C communication. This example reads and processes data from BLE TINY clicks.
Application waits for connection with Click board with phone. Then checks its Coadless FW version and checks connected device. Then waits for command to be stored in it's memory on 0 slot. After that depending on the command stored it executes that type of example.
The demo application is composed of two sections :
Initializes driver and resets device and seds Disconnect and Reset IO commands.
Then it waits for the connection to device. When connected it sends commands to check Coadless FW, connected device, its BLE address and signal quality of connection. In the end it waits for command from its memory. After valid command is stored in memory on 0 slot it contines to Application Task.
Executes one of thre application task selected in Application Init:I2C, SPI, APP.
I2C example uses EEPROM Click board to write and read data of its memory. SPI example uses EEPROM 2 Click board to write and read data of its memory. APP example just reads UART data and logs it to UART Terminal.
For this application you need to install Dialog's mobile application SmartConsole.
This application I2C example is created using EEPROM Click board, and for SPI example EEPROM 2 Click board is used.
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.