Could I ask for a sample code that using keyfob's button to control usb dongle's LED on & off?
I have no idea how to start with cc2540.
I'm a Taiwanese beginner.
Hi Weng Jine He :)
No problem, nobody is born with programming skills.
Let's try to introduce you in the world. First, download the BLE Stack. There are LOTS of codes there!
To understand what you are doing, you should first read the software developer's guide, since you wanna be one of them :)
The LED thing you wanna do can be easily done by opening the Keyfob or SimpleBLEPeripheral project (one of both) into IAR (the development environment). The projects are separated in multiple "layers" so people not interested in hardware, for example, do not have to deal with it :)
Why don't you take a look to the file "hal_key.c" and try to identify the place where a button is detected to be pressed? Then, a simple line of code will do what you want.
Go for it. And good luck! And go back with all the questions which arise.
Please click the Verify Answer button on a post if it answers your question! :)
Thanks for your suggest, Kazola.I will try what you say.But, I think I will have a lot of questions on it in the future.
This is way this forum exists :)
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.