⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
stevenchick
Offline
Last seen:1year 9 months ago
加入:2019-05-22 13:34
Using Built-in push button on DA14695

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:
PM_Dialog
Offline
Last seen:7 hours 2 min ago
工作人员
加入:2018-02-08 11:03
Hi stevenchick,

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

ren0zhe
Offline
Last seen:1week 6 days ago
加入:2016-05-05 05:13
hi,the demo is set "hw_wkup

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.

PM_Dialog
Offline
Last seen:7 hours 2 min ago
工作人员
加入:2018-02-08 11:03
嗨ren0zhe,

嗨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