I'm trying to use the Gertboard dtoa.c code to acess a MCP4812 DAC.
I appreciate this isn't the 8 bit version of this chip that's normally used with the Gertboard, and I was expecting to have to make a few mods to use the device.
Before I can do this though, I have an initialisation problem.
The function setup_spi() never returns.
I'm using Raspbian
I have a /boot/config.txt file containing dtparam=spi=on
I can see /dev/spidev0.0 and /dev/spidev0.1
What else go wrong with setting up SPI ?
Cheers, J/.