Back to CC2650 SensorTag main wiki page.
BLE 2.1.0 has now been released (1 August 2015)
The CC2650 SensorTag provides for hardware plug-in boards that extend the functionality of the SensorTag beyond the basic "measure sensor and report data use". The Watch DevPack features a Sharp 96x96 LCD, and from the release of BLE stack 2.1 the device will be fully supported with accompanying RTOS board files and Graphics Library.
- BLE Stack Rev. 2.1.0
- IAR Rev. 7.40.2
- SmartRF Flash Programmer 2, Rev. 1.6.1
- Debug DevPack Rev. 1.2.0
- Watch DevPack Rev. 1.0.0
- CC2650 SensorTag Rev. 1.2 or 1.3
Installing BLE SDK v 2.1.0
Go to the BLE Stack landing page and follow the instructions on how to download. When downloaded it is recommended use the default instillation directory (C:\ti\simplelink\ble_cc26xx_2_01_00_44423), the rest of this page assumes the BLE SDK is installed here.
Programming the LCD DevPack firmware
First make sure that your SensorTag already has a full SensorTag image programmed. The image is found in the Accessories\HexFiles folder and is called CC2640_SmartRF_SensorTag.hex. It can be programmed with SmartRF Flash Programmer 2 (v 1.6.1 or above). When done, open the workspace file SensorTagDevPk.eww with IAR (version 7.40.2 is recommended) and build, download and run the project. You should now see the LCD being activated and it should display the text "CC2650 SensorTag" on the first line.
You are now ready to experiment with the LCD. Check the files devpk_lcd.c for an overview of the API. Each function has a header that explains how it is used. Remember the devpkLcdOpen() must be called before you can use the other functions in the devpkLcd API. Please note that these functions will NOT work in an interrupt context.
LCD in the SensorTag application
In the file SensorTag.c and SensorTag_Display.c you will see examples of how the LCD is used. Connection status will always be shown, and when advertising the battery voltage is always displayed.
A GATT service for access to the LCD is also provided. This allows a GATT client on a phone, tablet or PC to write messages to any position on the display, turn the LCD on and off, clear the display, and also invert it.
|Display Data||AD01*||R/W||1-16||Data to write to the display|
|Display Control||AD02*||R/W||1-3||Byte 0: command, Byte 1-2: additional data for some commands.|
Overview of interface IDs (byte 0 of Register Device ID characteristic)
|4||Clear line (byte 1: line number)|
|6||Set position (byte 1: line, byte 2: column)|
|7 - 255||Not used|