I don't know what Wrong!

Hello
whenever I try to upload my code into Arduino I get the following code:
Arduino: 1.8.13 (Windows 10), Board: “Arduino Uno”

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\bernardino\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775 -warnings=none -build-cache C:\Users\BERNAR~1\AppData\Local\Temp\arduino_cache_377657 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\bernardino\Documents\Arduino\sketch_mar08a\sketch_mar08a.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\bernardino\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775 -warnings=none -build-cache C:\Users\BERNAR~1\AppData\Local\Temp\arduino_cache_377657 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\bernardino\Documents\Arduino\sketch_mar08a\sketch_mar08a.ino

Using board ‘uno’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core ‘arduino’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used…

“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\sketch\sketch_mar08a.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes…

“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\sketch\sketch_mar08a.ino.cpp” -o “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\preproc\ctags_target_for_gcc_minus_e.cpp” -DARDUINO_LIB_DISCOVERY_PHASE

“C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\preproc\ctags_target_for_gcc_minus_e.cpp”

Compiling sketch…

“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\sketch\sketch_mar08a.ino.cpp” -o “C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\sketch\sketch_mar08a.ino.cpp.o”

In file included from C:\Users\BERNAR~1\AppData\Local\Temp\arduino_build_900775\sketch\sketch_mar08a.ino.cpp:1:0:

C:\Users\bernardino\Documents\Arduino\sketch_mar08a\sketch_mar08a.ino: In function ‘void loop()’:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:40:14: error: expected unqualified-id before numeric constant

#define HIGH 0x1

^

C:\Users\bernardino\Documents\Arduino\sketch_mar08a\sketch_mar08a.ino:35:22: note: in expansion of macro ‘HIGH’

digitalWrite(blue. HIGH);

^~~~

exit status 1

Error compiling for board Arduino Uno.

Can I please get some help?!

Code:
int red = 1;
int green = 2;
int blue = 3;
int potentiometer = A5;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
int value;
value = analogRead(potentiometer);
if(value >= 0 && value <= 300){
digitalWrite(red, HIGH);
digitalWrite(green, LOW);
digitalWrite(blue, LOW);
}
else if(value > 300 && value <= 600){
digitalWrite(red, LOW);
digitalWrite(green, LOW);
digitalWrite(green, HIGH);
}
else if(value > 600 && value <= 900){
digitalWrite(blue, HIGH);
digitalWrite(green, LOW);
digitalWrite(red, LOW);
}
else{
digitalWrite(red, HIGH);
digitalWrite(green, HIGH);
digitalWrite(blue. HIGH);
}
Serial.print(value);
}

You have a . instead of a ,

digitalWrite(red, HIGH);
  digitalWrite(green, HIGH);
  digitalWrite(blue. HIGH); // <-- here

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