Greetings,
CPU = nRF5340
SDK = nRF Connect SDK v1.6.1 and 1.6.0
Board = custom
For the nRF5430, we have a custom board that uses active high logic to turn LEDs on. In the custom board's DTS files, we set GPIO_ACTIVE_HIGH:
leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; label = "RED LED 0"; }; led1: led_1 { gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; label = "Green LED 1"; }; led2: led_2 { gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; label = "BLUE LED 2"; }; };
When using the peripheral_lbs sample code, All three LEDs operate in exactly the opposite fashion. Red just flashes, but suspect it starts in the opposite state. Green in ON when disconnected and off when connected. Blue is on to start, then turns off when writing a non-zero value to the characteristic and on when writing a zero.
We have other code that utilizes these same LEDs, but not using LBS. LEDs turn on and off as expected.
Both application and network DTS files have the same LED assignments.
Suggestions?