Hello ,
i use blinky example from C:\Keil_v5\ARM\Device\Nordic\nrf51822\Board\pca10001 folder. I want to flash the led with periods (period of 30 ms turn on 10 ms off)
if you can help me .
thank you
Hello ,
i use blinky example from C:\Keil_v5\ARM\Device\Nordic\nrf51822\Board\pca10001 folder. I want to flash the led with periods (period of 30 ms turn on 10 ms off)
if you can help me .
thank you
Hi,
I don not know what SDK version you are using, but this is written assuming SDK v4.4.2.
You should be able to achieve this functionality by changing the while loop to something like this:
nrf_gpio_port_write(LED_PORT, 1 << (output_state + LED_OFFSET)); output_state = (output_state + 1) & BLINKY_STATE_MASK; nrf_delay_ms(30); nrf_gpio_port_write(LED_PORT, 1 << (output_state + LED_OFFSET)); output_state = (output_state + 1) & BLINKY_STATE_MASK; nrf_delay_ms(10);
Best regards,
Jørgen
Hello,
thank you ,I am using nRF SDK 12.2.0 , with nRF52832 on pca10040 hardware.
hi,
try new sdk 14.2
regards
hi,
try new sdk 14.2
regards