add honking feature

This commit is contained in:
Alfonso Gamboa
2022-07-15 16:48:10 -07:00
parent 2365a35749
commit 1fee46a051
4 changed files with 8 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ echo "CAR: c: reverse right"
echo "CAR: x: all stop"
echo "CAR: h: headlight on/off"
echo "CAR: j: irled on/off"
echo "CAR: b: honk"
echo -e ""
echo "CAR: 1: quit ASAP!"
echo -e ""
@@ -133,6 +134,9 @@ elif [ "$input" = "h" ]; then
elif [ "$input" = "j" ]; then
irled
elif [ "$input" = "b" ]; then
/opt/wz_mini/bin/cmd aplay /opt/wz_mini/usr/share/audio/honk.wav 70 > /dev/null 2>&1 &
elif [ "$input" = "1" ]; then
#exit
echo -ne "\xaa\x55\x43\x06\x29\x80\x80\x00\x02\x71" > /dev/ttyUSB0

View File

@@ -1 +1 @@
Fri Jul 15 11:46:04 AM PDT 2022
Fri Jul 15 04:47:54 PM PDT 2022

Binary file not shown.