Programing/ Nordic(BLE)
LED 깜빡이기
흰군
2015. 5. 10. 20:54
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <stdbool.h> #include <stdint.h> #include "nrf_delay.h" #include "nrf_gpio.h" #include "boards.h" int main(void) { // Configure LED-pins as outputs. nrf_gpio_cfg_output(LED_1); // Toggle LEDs. while (true) { nrf_gpio_pin_set(LED_1); nrf_delay_ms(500); nrf_gpio_pin_clear(LED_1); nrf_delay_ms(500); } } | cs |