Update: I was able to get some functionality by setting the frequency first and then the voltage as shown below. I was only able to go up to about 1KHz before the signal quality would degrade to basically be always on (should be able to go much higher), but that may be a limit of the switching frequency of the shield I am using. I don't see any mention of this in the documentation, so I don't think it's supposed to work this way, but should be good enough to work. Note that the Voltage needs to be set as low as possible, as it seems like (looking at the scope) that it basically is using that as the "base" voltage, and then the frequency command pulses up from there, so you will erode away your signal clarity with larger voltage values.
PUL = 20;
PulseFreq = 1000;
configurePin(MainRasp, PUL, 'PWM');
writePWMFrequency(MainRasp,PUL,PulseFreq)
writePWMVoltage(MainRasp,PUL,.1)
pause(2)
writePWMVoltage(MainRasp,PUL,0)
