Skip to content

Commit e00b2b9

Browse files
committed
Added button chime WAV and associated code to make it play when the GPIO 18 is pressed for 10 seconds
1 parent 6a5dbdf commit e00b2b9

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

Reset Device/button_chime.wav

398 KB
Binary file not shown.

Reset Device/reset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
print(counter)
1616

1717
if counter == 9:
18+
os.system('aplay [[project_dir]]/Reset\ Device/button_chime.wav')
1819
os.system('sudo rm -f /etc/wpa_supplicant/wpa_supplicant.conf')
1920
os.system('rm -f /home/pi/Projects/RaspiWifi/tmp/*')
2021
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/dhcpd.conf /etc/dhcp/')

Reset Device/reset.py.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ while True:
1515
print(counter)
1616

1717
if counter == 9:
18+
os.system('aplay [[project_dir]]/Reset\ Device/button_chime.wav')
1819
os.system('sudo rm -f /etc/wpa_supplicant/wpa_supplicant.conf')
1920
os.system('rm -f /home/pi/Projects/RaspiWifi/tmp/*')
2021
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/dhcpd.conf /etc/dhcp/')

0 commit comments

Comments
 (0)