Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** @file
- *
- * @defgroup blinky_example_main main.c
- * @{
- * @ingroup blinky_example
- * @brief Blinky Example Application main file.
- *
- * This file contains the source code for a sample application to blink LEDs.
- *
- */
- #include <stdbool.h>
- #include <stdint.h>
- #include <stdlib.h>
- #include "nrf_delay.h"
- #include "boards.h"
- /**
- * @brief Function for application main entry.
- */
- int main(void)
- {
- /* Configure board. */
- bsp_board_leds_init();
- /* Toggle LEDs. */
- while (true)
- {
- int i;
- i = (rand() % 4);
- bsp_board_led_invert(i);
- nrf_delay_ms(100);
- }
- }
- /**
- *@}
- **/
Add Comment
Please, Sign In to add comment