Ampel über bash Rohversion

This commit is contained in:
2025-06-15 11:22:06 +02:00
parent f38af95beb
commit 625f77cdce

24
raspi-bash/ampel.sh Executable file
View File

@@ -0,0 +1,24 @@
#! /usr/bin/bash
function ampel() {
case ${1} in
1)
echo "Ampelphase rot"
;;
2)
echo "Ampelphase rot/gelb"
;;
3)
echo "Ampelphase grün"
;;
4)
echo "Ampelphase gelb"
;;
esac
}
for i in 1 2 3 4; do
ampel "${i}"
done