This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change led color using examples\peripheral\led_softblink example

Hi Nordic,

I have tested the example, the softblink is working by configure the structure below:

typedef struct
{
bool active_high; /**< Activate negative polarity. */
uint8_t duty_cycle_max; /**< Maximum impulse width. */
uint8_t duty_cycle_min; /**< Minimum impulse width. */
uint8_t duty_cycle_step; /**< Cycle step. */
uint32_t off_time_ticks; /**< Ticks to stay in low impulse state. */
uint32_t on_time_ticks; /**< Ticks to stay in high impulse state. */
uint32_t leds_pin_bm; /**< Mask of used LEDs. */
NRF_GPIO_Type * p_leds_port; /**< Port of used LEDs mask. */
}led_sb_init_params_t;

But there is another problem I faced, how can I modify the softblink led color?

Thanks.

Parents Reply Children
No Data
Related