I am working on nrf52840 and using v2.7.0 SDK. in led_state_def.h (i modified it a little)
I dont understand the role of LED_COLOR() here. Seems like it is for RGB Led but for dev kit we have single color led. i am kind of confused because in this example overlay file have 4 pwm pins so why each pin has its own individual LED_COLOR() with 3 values. Should not it has only one value maybe telling duty cycle between 0-255 for a single pin? How is it working?
What if i want to use this program with RGB LED, i understand i can connect 3 pwm0-2 given in overlay to R, G, B of my tri color led , but again why 3 different values for each pin in LED_COLOR()?
Thanks.