ar2378
July 28, 2024, 11:57am
1
Hello, I am a beginner. I am trying to upload this code in my Arduino Uno R3 SMD
int water;
void setup() {
pinMode(3, OUTPUT);
pinMode(6, INPUT);
}
void loop() {
water = digitalRead(6);
if (water == HIGH)
{
digitalWrite(3, LOW);
digitalWrite(3, HIGH);
}
delay(400);
}
But I am having compilation error
recipe.preproc.macros pattern is missing
Compilation error: recipe.preproc.macros pattern is missing
Can anyone help me to solve this problem
Thanks in advance.
It sounds like you have some extra unneeded cpp or ino files in the shetch folder
I suspect that your installation is corrupt (for unknown reason; file platform.txt). You can try to downgrade the AVR board package and next upgrade it again using the board manager in the IDE.
Which version of the IDE are you using?
Hi, @ar2378
Welcome to the forum.
What IDE are you using?
What OS are you using?
Thanks.. Tom..
My best guess is the install failed, just do a re-install of 2.3.2 AND watch carefully for any messages.