This project toggles an LED attached to the device on and off every second you can disable the toggling using a Bluetooth LE program on your phone that supports the Generic Attribute Profile. I made a modified version of the toggle_led project from Programming the BLE112 using BGScript from bluetooth-smart.com, which is an excellent tutorial.
The toggle_led script from bluetooth-smart.com will toggle an LED, but the bluetooth radio seems to be mostly disabled. This is because that tutorial uses the TI SmartRF programmer. That programmer overwrites a region that where the bluegiga license key is supposed to reside, and I believe this disables most of the BGScript functionality. If you accidentally use the SmartRF programmer, just use the BLE SW Update tool again, and paste your license back in, and you should be good to go.
Here is the CC Debugger Pinout:
Here is the BLE Breakout Pinout, with the 6 CC Debugger Pin numbers indicated in black:
- Connect a 1K resistor from P0_7 to the positive (longer lead) end of an LED, and connect the negative end of the LED to ground.
- From the toggle_led directory,
C:\Bluegiga\ble-1.2.2-100\bin\bgbuild.exe project.xml - Flash the device using the BLE SW Update Tool and
out.hexfrom the toggle_led directory. Your LED should now be blinking. - Using LightBlue, find the device. It should be called "Toggle LED Demo". Navigate to the service starting with "384ABBC5". This is a GUID that I generated for my service (I used GUIDGen.com). There should be one characteristic found. Press Write. In the "Write Hex" box, write
00. This should make the LED stay solid on. Now write01. The LED should now blink again.

