请问如何在widora NEO添加自定议按键

大家好,最近需要用GPIO41做个按键来控制,一个灯的点亮和关闭,求告诉方法。

能告诉具体操作方法吗?我能获取到按键事件,如下所示,就是不能执行事件处理函数。
Tue Sep 4 22:42:27 2018 user.notice root: the button was BTN_2 and the action was pressed
Tue Sep 4 22:42:28 2018 user.notice root: the button was BTN_2 and the action was released

很简单的