analogReference

Hi, I'm using an Arduino mega 2560 R3 made by Elegoo on a PC.
When I input the command analogReference(INTERNAL1V1); or (INTERNAL2V56); I receive the error:
RTC_with_LCD:12:16: error: expected constructor, destructor, or type conversion before '(' token
analogReference(INTERNAL1V1); expected constructor, destructor, or type conversion before '(' token.

Does anyone know what's going on?

Post your code (PROPERLY) for us to see. You MAY have it outside of setup().

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.