Basic question is how much voltage does the audio output give?
I'm trying to check how long it takes to execute
Code: Select all
pygame.mixer.play()I started with a usb sound card but I feel like that won't give me true latency as it complicates the issue.(?)
So I hooked up an audio cable to go from the 3.5 audio output to a ground and GPIO pin.
I was trying to use:
Code: Select all
pygame.mixer.music.play(1,0.0)
while True:
print("Waiting...")
GPIO.wait_for_edge(17, GPIO.RISING)
print("Detected") Thanks