Se agregan las funciones para el encendido de los leds y apagado de los mismos sin embargo esto aun se debe modificar para que detecte si debe apagarse o encenderse.

main
guillermoponce 2 months ago
parent f832e44615
commit 1a9b940bfc

@ -1,8 +1,24 @@
#! /bin/bash
LED0=/sys/class/leds/beaglebone:green:usr
LED=/sys/class/leds/beaglebone:green:usr
NUM=$1
echo "none" >> $LED0$NUM/trigger
echo "1" >> $LED0$NUM/brightness
function removeTrigger
{
echo "none" >> $LED$NUM/trigger
}
function ledOn
{
echo "1" >> $LED$NUM/brightness
}
function ledOff
{
echo "0" >> $LED$NUM/brightness
}
echo "Starting program "
removeTrigger
ledOn
echo "script done"

Loading…
Cancel
Save