I want to use the AREF pin on Arduino Due to provide 1V to make it reference voltage for ADC. However, if I use analogReference(EXTERNAL); command in the IDE, the IDE gives the error "invalid conversion from 'int' to 'eAnalogReference {aka_eAnalogReference}'[-fpermissive]".
Is there any other command for Arduino Due to change the reference voltage to AREF pin?
I moved your topic to an appropriate forum category @mussawarahmed.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.