/*--------------------------- in step count mode by default -------------------*/ void system_default_work_mode_init() { MMA845x_Init(); MMA845x_Active(); pedometer_init(); }
void enter_pedo_mode() { xprintf("\r\nEnter the pedometer mode...\r\n"); oled_pedo_mode(); MMA845x_Init(); //Initial the 3-Axis Accelerometer MMA845x_Active(); pedometer_init(); }
void sensor_init() { nrf_gpio_cfg_input(4, NRF_GPIO_PIN_PULLDOWN); nrf_gpio_cfg_input(5, NRF_GPIO_PIN_PULLDOWN); nrf_gpio_cfg_input(6, NRF_GPIO_PIN_PULLDOWN); MMA845x_Init(); bmp180_init_interface(); bmi055_init(); ak8963_init(); }