Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool val=false;
- nrf_gpio_pin_dir_set(NRF_GPIO_PIN_MAP(1, 10), NRF_GPIO_PIN_DIR_OUTPUT);
- while(1){
- nrf_gpio_pin_write(NRF_GPIO_PIN_MAP(1, 10), val);
- nrf_delay_ms(200);
- if(val) val=false;
- else val=true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement