Got an error while compiling sketch
error =
Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Uno"
C:\Users\USER\Documents\Arduino\leed_course\leed_course.ino: In function 'void loop()':
leed_course:13:11: error: invalid use of 'Print::Print'
Serial.Print("Blink Number # ");
^~~~~
leed_course:14:11: error: 'class HardwareSerial' has no member named 'Println'; did you mean 'println'?
Serial.Println(counter);
^~~~~~~
println
exit status 1
invalid use of 'Print::Print'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
and this is the code==
int LED=13;
int counter=0;
void setup() {
// put your setup code here, to run once:
pinMode(LED,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
counter=counter+1;//adding one everytime it loops
Serial.Print("Blink Number # ");
Serial.Println(counter);
digitalWrite(LED,HIGH);
delay(2000);
digitalWrite(LED,LOW);
delay(600);
}