ein gpioset Kommando schaltet alle LED.

This commit is contained in:
2025-06-16 08:43:59 +02:00
parent a55a88f6f5
commit 1ab2d103ec

View File

@@ -17,9 +17,7 @@ function resetPins() {
function setPins() { function setPins() {
gpioset "${gpiochip}" ${pin_rot}=${state_rot} gpioset "${gpiochip}" ${pin_rot}=${state_rot} ${pin_gelb}=${state_gelb} ${pin_gruen}=${state_gruen}
gpioset "${gpiochip}" ${pin_gelb}=${state_gelb}
gpioset "${gpiochip}" ${pin_gruen}=${state_gruen}
} }
function ampel() { function ampel() {
@@ -59,8 +57,8 @@ function ampel() {
esac esac
} }
for i in 1 2 3 4; do for phase in 1 2 3 4 1; do
ampel "${i}" ampel "${phase}"
done done
resetPins resetPins