Hello,
I'm getting started with SDK 8.0. The examples complied and flashed for me relatively painlessly on OSX, and the project organization is easy to understand.
Now I am looking at modifying the HID keyboard example for a device that I am building. I've copied the project folder over and created a custom_board.h for my prototype.
Sitting down to actually write code, I am beginning to wonder what the best way to architect my modifications in without clobbering the BSP backend. I basically just want to set up 12 buttons to send a predefined keypress, and use a combination of those buttons to start advertising mode, etc. My two main issues are:
-The device I am building has 12 buttons and BSP only supports 8
-I want to use button combinations/presses/releases to initiate events like initiate advertising, etc, and it seems like BSP is limited to using a few buttons and detecting a few event types.
Can someone recommend the best way for me to proceed? It makes me nervous to be hacking directly on the support libraries, and I am unsure of the best way to unweave the necessary parts from the event stack provided by the SDK.
-Maybe there an easy way to disable parts of the backend event generation stuff and cleanly instantiate the button config and event detection/handling directly in main.c?
-And also generate commands for the softdevice?
Thank you!