aw91:
Thanks I'm using version 1.6.3 (on a Mac)
but now I have a couple of additional questions.
- I can't find this header file because there is no directory for the due
- If I find, do I have to change in the variant.h file?
- what is wiring_analog.c ?
and if I can set the PWM_Frequency to 1000 - do I affect all other timers or is this something like a prescaler?!?
sorry for the maybe stupid questions, but this is my first time using arduino and overall I'm not a programming genius.
With 1.6 and onwards the Due is an add-on module, you have to download it and install it,
then you'll have the source tree, just in a different place.
Its open source, go look at the source tree, its there for you!
That #define affects all the PWM pins. Hopefully someone will implement code to do this properly.
(perhaps its there in 1.6.x, I haven't checked recently)....