From ff0b2908458a035e8cc6fe05f5b245a5a0fba555 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 5 Aug 2024 10:21:01 -0400 Subject: [PATCH] Update rpitx.py switch from Headphones to Device to use USB sound card input --- rpitx.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rpitx.py b/rpitx.py index 47b98d35..55063053 100644 --- a/rpitx.py +++ b/rpitx.py @@ -386,7 +386,7 @@ if __name__ == "__main__": # output(pd, 1) # output (ptt, 0) # sleep(0.1) -# system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/morse.wav") +# system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/morse.wav") # sleep(0.1) # output (ptt, 1) # output(pd, 0) @@ -447,7 +447,7 @@ if __name__ == "__main__": sleep(0.1) # add delay before transmit output (ptt, 0) sleep(0.3) # add even more time at start - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/telem.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/telem.wav") sleep(0.2) # add more time at end output (ptt, 1) # output(pd, 0) @@ -498,7 +498,7 @@ if __name__ == "__main__": # output (pd, 1) sleep(0.3) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/morse.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/morse.wav") sleep(0.1) output (ptt, 1) # output (pd, 0) @@ -558,7 +558,7 @@ if __name__ == "__main__": if (txc): # output(pd, 1) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg.wav") output (ptt, 1) # output(pd, 0) else: @@ -618,7 +618,7 @@ if __name__ == "__main__": if (txc): # output(pd, 1) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/camera_out.jpg.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/camera_out.jpg.wav") output(ptt, 1) # output (pd, 0) else: @@ -655,7 +655,7 @@ if __name__ == "__main__": if (txc): # output(pd, 1) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg.wav") output(ptt, 1) # output (pd, 0) else: @@ -691,7 +691,7 @@ if __name__ == "__main__": if (txc): # output(pd, 1) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg.wav") output(ptt, 1) # output (pd, 0) else: @@ -722,7 +722,7 @@ if __name__ == "__main__": if (txc): # output(pd, 1) output (ptt, 0) - system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/sstv.wav") + system("aplay -D hw:CARD=Device,DEV=0 /home/pi/CubeSatSim/sstv.wav") output(ptt, 1) # output (pd, 0) else: