so I’m trying to get back into learning how to use the pi, and was just wanting a simple project using the gpio pins. Basically I’m wondering is there any way to send a signal through one of the gpio pins to generate sound through a small 8 ohm 0.1w speaker? Not trying to do anything really fancy, so maybe just a square wave signal or something that goes on for like 5 seconds, and shuts off for 5, and repeats until the program is terminated. And maybe a way to change the pitch each time in an arpeggio?
Also, if anyone could help explain a bit how it works. Copying code and pasting it would be simple enough but I don’t think I’d learn much from it. I want to learn more on programming things that actually interact with the pi through the pins. While I’ve been teaching myself some of the basics in programming (having a program in python print “hello world!” And other simple stuff like changes in a list etc.) I’d like to also try a few basic things that aren’t simply printing messages and lists back in python, but actually interacting with things connected to the pi.