This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

In nrf52833 SDK16 nrf_APP_hid_mouse example,how to make a button(left/right) click event?

Hi:All:

     A:    Since I have getten help to make left/right button working well, but I just want to know the dataflow from the button being pressed to released. 1. It means that:the button  code 0x01(left button)---->to filled a table like a rep_map_data---->then  send to the softdevice and out  2.what is the defference between the inp_rep_array[]  and the rep_map_data?  3. how  to set up another more than four button in the example?  4.BLE device how to receive data from the host? 

    B: Another question about QDEC,it seems the liberary only gives the steps that the wheel turns.it does conclude it's direction.And how to find out it's direction?  

Parents
  • Hi,

    1. Correct
    2. Two arrays that contains different information for the initializing process:
      1. inp_rep_array[] is an array that contains structs that has all configurations and data for initializing one Input Report characteristics.
      2. rep_map_data[] contains the configuration of the HID device. Such as buttons and other functionality.
    3. It depends on the functionality of the buttons. You would have to reconfigure the rep_map_data[] so that it fits your added buttons, then you would have to make your own send function. I strongly recommend that you search the forum for similar threads and see how other users have implemented this.
    4. What data do you want to receive? 

    B: 

    Are you asking about the QDEC example from the SDK?

    regards

    Jared 

Reply
  • Hi,

    1. Correct
    2. Two arrays that contains different information for the initializing process:
      1. inp_rep_array[] is an array that contains structs that has all configurations and data for initializing one Input Report characteristics.
      2. rep_map_data[] contains the configuration of the HID device. Such as buttons and other functionality.
    3. It depends on the functionality of the buttons. You would have to reconfigure the rep_map_data[] so that it fits your added buttons, then you would have to make your own send function. I strongly recommend that you search the forum for similar threads and see how other users have implemented this.
    4. What data do you want to receive? 

    B: 

    Are you asking about the QDEC example from the SDK?

    regards

    Jared 

Children
Related