static void buttons_init(void) { static app_button_cfg_t buttons[] = { {MOTION_DETECT_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, {LEFT_BUTTON_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, {RIGHT_BUTTON_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, // Note: This pin is also BONDMNGR_DELETE_BUTTON_PIN_NO {UP_WHEEL_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, {DOWN_WHEEL_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, {MIDDLE_BUTTON_PIN_NO, false, NRF_GPIO_PIN_PULLUP, button_event_handler}, };
APP_BUTTON_INIT(buttons, sizeof(buttons) / sizeof(buttons[0]), BUTTON_DETECTION_DELAY, true);
I want to read sensor date by I2C read, motion event detected by MOTION_DETECT_PIN_NO, it would change to low by sensor when motion happen. I can get all things trigger except MOTION_DETECT_PIN_NO(pin 0.24)
May be sensor data shoud be get by other way?