This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-CC2640R2: Guide on making an IMU HID with hid_emu_kbd_cc2640r2lp_app

Part Number: LAUNCHXL-CC2640R2

Tool/software: Code Composer Studio

I am creating a IMU keyboard controller using hid_emu_kbd_cc2640r2lp_app example.

1. Can you tell me where in the example does it wait for the button presses? I have written code in all the functions that I thought were triggering the button presses but I could not find it at all.

2. I had my sensor printing its read values onto the console I put it in the task HidEmuKbd_createTask(); but they stop printing after few times. Do you know why this happens? But reading starts when I click button, but stops few moments later. I did not find any semaphores within the task how exactly is this occuring?

3. I put my sensor reading commands inside HidEmuKbd_createTask(); but now the BLE connection keeps getting disconnected. Should I put it in a different task?

  • Hi Chingun,

    1. Review the HidEmuKbd_handleKeys function. This is where key press events are handled.

    2. Why did you add that to createTask? The main application task loop is: HidEmuKbd_taskFxn

    3. I don't think that's right. I would recommend doing it in a task function.

    I would recommend you go through SimpleLink Academy for the CC2640R2 in order to better understand our example structures: www.ti.com/.../academy.html