Just to set the right expectations, analogwrite() on the Artemis is actually a PWM signal. It is NOT a DAC (Digital Analog converter) like
https://www.sparkfun.com/products/12918. In the library V2.x.x there is a call analogwriteDAC() but that does not do anything.
The PWM signal is generated by one of the CTIMERs. The Apollo3 hase 16 CTIMERS and the output of each can be mapped to 2 different pins, as such there are 32 pins that can perform analogwrite(). The document
https://cdn.sparkfun.com/assets/8/2/3/3 ... apping.pdf shows which pins (indicated in pink with CTx, e.g. CT0).
On the ATP the relevant pins all have "~" as an indicator and can be used for PWM output and thus analogWrite().