nrf simple timer1 nRF51 DK 예제 17 -SIMPLE TIMER 이번예제는 simple timer입니다. LED1과 LED2 가 모두 켜진후 각각 2초간 토글되는 예제입니다. main.c 1234567891011121314151617int main(void){ uint32_t err_code = app_simple_timer_init(); APP_ERROR_CHECK(err_code); LEDS_CONFIGURE(BSP_LED_0_MASK | BSP_LED_1_MASK); LEDS_ON(BSP_LED_0_MASK | BSP_LED_1_MASK); nrf_delay_ms(GENERIC_DELAY_TIME); state_machine_state_change(APP_STATE_SINGLE_SHOT); for (;;) { power_manage(); } }Colored by.. 2015. 3. 13. 이전 1 다음 인기글