July-5th-2018, 10:48 AM
(This post was last modified: January-4th-2019, 05:51 PM by Armin@netPI.)
Frank, physically these LEDs are connected physically to GPIO12 and GPIO13.
In netPI's host Linux these pins are not created as gpio devices but as led devices by default. (It does not make sense to program them as GPIOs since they are outputs always, so we decided to let the Linux creating them as LEDs.)
So instead of echoing in a console to /sys/class/gpio for example you have to use the path /sys/class/leds.
Under this path you find 4 LEDs: led0, led1, user0:orange:user, user1:orange:user
So to light up the 1st orange LED in a console use
The same applies for the other LED.
In netPI's host Linux these pins are not created as gpio devices but as led devices by default. (It does not make sense to program them as GPIOs since they are outputs always, so we decided to let the Linux creating them as LEDs.)
So instead of echoing in a console to /sys/class/gpio for example you have to use the path /sys/class/leds.
Under this path you find 4 LEDs: led0, led1, user0:orange:user, user1:orange:user
So to light up the 1st orange LED in a console use
Code:
echo 1 | sudo tee /sys/class/leds/user0:orange:user/brightness
The same applies for the other LED.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)