Dear all,
I wanted to see if anyone has been able to use the on board push button (marked as k1 on the board layout) from the DA14695 Board in their code? I would like to write a program that activates a BLE Scanner after pushing this button, however I cannot seem to find any ports or declarations in the code for it. Any advice on the matter would be greatly appreciated.
Thanks!
Steven
Device:
Hi stevenchick,
Thanks for your question. Regarding the K1 button of the Pro-DK, you could check theDA1469x Tutorial External Interruptionexample from the DA1469x support website. To run this tutorial you will need he free_rtos example of the SDK. The K1 button is mapped on the P06. Please check the brd_prodk_da1469x.h which is under sdk/config/boards project folder root and the button is defined in KEY configuration section.
#define KEY1_PORT (HW_GPIO_PORT_0)
#define KEY1_PIN (HW_GPIO_PIN_6)
#define KEY1_MODE (HW_GPIO_MODE_INPUT_PULLUP)
#define KEY1_FUNC (HW_GPIO_FUNC_GPIO)
Thanks, PM_Dialog
hi,the demo is set "hw_wkup_register_key_interrupt". If I want to use two ordinary buttons, how to configure it? GPIO_P0_IRQ? Where can I see relevant examples or documents? Thanks.
嗨ren0zhe,
Could you please clarify what you are trying to accomplish? Do you want to wake-up through 2 different GPIOs?
Please take a look at theDA1469x Wake up controllerSW Examples - it might help you.
I would suggest to create a new forum topic as this one is old.
Thanks, PM_Dialog