due analogwrite was not declared in this scope

Trying to switch from avr to due and analogwrite isn't being recognized
analogwrite was not declared in this scope

Try analogWrite

Pete

using this
analog_Write(DAC1, int(dac_voltage));

ok typo
should be analogWrite