mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
add honking feature
This commit is contained in:
@@ -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
|
||||
|
@@ -1 +1 @@
|
||||
Fri Jul 15 11:46:04 AM PDT 2022
|
||||
Fri Jul 15 04:47:54 PM PDT 2022
|
||||
|
BIN
SD_ROOT/wz_mini/usr/share/audio/honk.wav
Normal file
BIN
SD_ROOT/wz_mini/usr/share/audio/honk.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user