Can't make a MCP4921 work using DAC on a Raspberry Pico with Arduino libraries

Just bought a Pico, tried a few things with the Arduino IDE as that's what I'm accustomed, had some success with it*

Next step for my project would be to send SPI to a MCP4921 DAC. It's been a few days and can't make it work, I imagine because Pico has different SPI pins than the Arduino family.
It seems that there is no MCP4921 library for the Pico, but there is a library for the UNO, MEGA, etc (328 family), the "DAC_MCP49xx" library.
I never studied the MCP4921 datasheet, I just used that library with the Atmega328 and it suited me fine.

Doing some research I found there is this SPI library for the Pico, but I would need to send the right data in order to drive the MCP4921 correctly (aka: study the datasheet and work for days on it?)

Looking for a little guidance.
What would be the best way for me to proceed???
Changing the existing "DAC_MCP49xx" library or learning how to send the correct info with the SPI library?
Am I missing something?

*: I am trying to make a synth with the awesome Mozzi library. Trying to upgrade from Atmega328 to Pico so maybe I can get more sample rate and more bitrate with the MCP? less aliasing.
I already can generate sound using Pico's PWM output, but it's not great, I would say of same quality of Atmega328. That's why want to try a DAC.

Thanks!

If you want to generate sound why not use a DAC for this purpose like the PT8211 for example?

Well yes, I could use that DAC. But I'll have the same problem

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.