Pico 2W uLisp: playing notes on the speakers

Hello, first post here.

I have built a working uLisp UF2 image for the PicoCalc with the Pico 2W. I’ve been trying to get some things working on it, and one thing I can’t figure out is which pin the speakers are on. I’d like to play notes, e.g. following along with this example.

(note 11 1 4)

I naively just ran that, and it hangs (probably because the pin is invalid). Anyone know which pin the speakers are on?

1 Like

Someone smarter may have to correct this, but based on the schematic on GitHub, it looks like the audio inputs are denoted PWM_L and PWM_R, which correspond to GPIO pins 26 and 27.

Hi, i would be interested to learn ulisp on my picocalc pico 2w. Do you plan to share this firmware version ? It would be Nice !

2 Likes

Yeah, and it would neat to compare performance. Some of the uLisp graphics examples take a few seconds to run - how much faster would they be on a 2?

I am debugging a few things related to LispLibrary, and haven’t gotten the notes to play yet (maybe I have to set the pin modes, still figuring some stuff out). (mandelbrot 0 0 1) takes quite a bit of time (more than five minutes).

3 Likes

Not so bad! There is some hardware progress during the years.

3 Likes

Finally we can get our mandelbrots generated in 5 mins! Progress!

5 Likes

I second this, once you get everything sorted out, I think it would be great if you put it out into the world.

I have it running mostly reliably, except there’s a few cases where it runs into an error and appears to hang. Usually, it’s still responsive on the serial port, though. Also need to get line editing working with the keyboard.

Still no dice on the speaker though.

Verified that it builds on Pico and Pico 2W; I assume it builds on the Pico W and Pico 2, but I don’t have any to test on.

1 Like