[Deater] did just that with the Raspberry ... as well as sound cards for the Apple II family. They were capable of generating three channels of square waves with various effects.