I have found that there is an example about cc2540 HID keyboard:
Texas Instruments\BLE-CC254x-1.3.1\Projects\ble\HIDEmuKbd
I download it to the cc2540 and try to scan it in ipad setting.
The HID keyboard did not shows in the setting.
Then I try to use other apps to scan and connect it.
I can see the device names "HID keyboard". It ask me to pair after I connect it.
I pair it but it not works like a keyboard.
The "left arrow" "right arrow" do not work.
I try to change it to some words like 'W' or 'A' in the source code,but still not work.
Is that the cc2540 HID keyboard can not works in iphone or ipad?
The other big problem is my own project do not works any more after I download the HIDEmuKbd to the cc2540,
I left the HIDEmuKbd and download my own project back to the cc2540.
I found that I can't connect the cc2540 again.
The project works fine before. Is that the HIDEmuKbd change some setting that would not change even I reset it?