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?