Hi all,
I configured few leds like that :
leds
{
compatible = "gpio-leds";
debug-led
{
label = "Heartbeat";
gpios = <&gpio5 4 0>;
linux,default-trigger = "heartbeat";
};//end debug led
led-r1
{
label = "LED_R_1";
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-o1
{
label = "LED_O_1";
gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-r2
{
label = "LED_R_2";
gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-o2
{
label = "LED_O_2";
gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-v1
{
label = "LED_V_1";
gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-v2
{
label = "LED_V_2";
gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-v3
{
label = "LED_V_3";
gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led-v4
{
label = "LED_V_4";
gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};//end leds
All the leds appear in /sys/class/leds.
However when I do "echo 1 > LED_V_1/brightness", nothing happen, and that is the same for all the leds...
Some of them (LED_R_ and LED_O_1) are on at the start whereas the brightness is at 0.
Did I forgot something ?
Solved! Go to Solution.
Basic error...
The same pins were configured for spi somewhere else ...
Basic error...
The same pins were configured for spi somewhere else ...