示例#1
0
/*--------------------------- in step count mode by default -------------------*/
void system_default_work_mode_init()
{
    
    MMA845x_Init();
	MMA845x_Active();	
    pedometer_init();
}
示例#2
0
文件: main.c 项目: CorBiNO/Atomwear
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();
}
示例#3
0
文件: main.c 项目: CorBiNO/Atomwear
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();
}