Okay, kinda a noob here. I've been looking around, trying to find an answer to playing audio via the PWM pins. I tried rerouting the audio to no avail. I've tried making a script that uses PWM to play audio over the pins. I just can't get it to work at all.
Pi GPIO connections: Speaker+ on GPIO 18 (PWM 0); Speaker- on GND
Visual representation (- = speaker negative, + = speaker positive):
..-..+.............. .................... I am not sure what I am doing wrong. Any help is appreciated.
P.S. Yes, the speaker and all the pins on my Pi work.