Error Compiling for Board

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

In file included from sketch\RIA_CODE.ino.cpp:1:0:

C:\Users\nowbo\OneDrive\Documents\Arduino\RIA_CODE\RIA_CODE.ino: In function 'void loop()':

C:\Users\nowbo\OneDrive\Documents\ArduinoData\packages\arduino\hardware\avr\1.8.2\cores\arduino/Arduino.h:41:14: error: expected unqualified-id before numeric constant

define LOW 0x0

^

C:\Users\nowbo\OneDrive\Documents\Arduino\RIA_CODE\RIA_CODE.ino:155:23: note: in expansion of macro 'LOW'

analogWrite(A2. LOW);

^~~

exit status 1 Error compiling for board Arduino Nano.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

//This is the error message I get every time I try to upload

analogWrite(A2. LOW);

Shouldn't that be a comma instead of a dot?

The other eror may be before that line. That is why we like to see the whole program, not snippets.

A2 is not a PWM pin, so analogWrite will not work with A2.

Thank You!!! :slight_smile: