1The left side is a #define
A name made with #define is replaced by its text before compiling, so LED_PIN = 8 becomes 13 = 8. Use a variable to change it.
#define LED_PIN 13
void setup() {
Serial.begin(9600);
LED_PIN = 8;
Serial.println(LED_PIN);
}
void loop() {
}int ledPin = 13;
void setup() {
Serial.begin(9600);
ledPin = 8;
Serial.println(ledPin);
}
void loop() {
}Mokxi’s build tab says: The left side of = has to be a variable that can change.