Fresh install of Arduino IDE 1.6.7 and sam cores are in Appdata/local/Arduino15. Can see readAnalogResolution defined in wiring_analog.c.
I've tried installing the Sam boards other versions 1.6.5, 1.6.4, but cannot get the read resolution to work as it says it is not in scope. Tried deleting everything and going back to old versions of IDE and while everything else works readAnalogResolution isn't in scope. Am back at latest of boards and IDE.
Selected port with Due, Programmer Due, all the usual and can compile and upload no problem.
Tried compiling the CAN app Echo test of Collins and will compile. CANBUS is the reason i got the Due but i also would like the 12 bits of A/D for another application. Tried include wiring_analog.h, no help.
Checked the other posts of this problem but couldn't find a solution. Any thoughts?
Message:
exit status 1
'readAnalogResolution' was not declared in this scope