Easy fix you have square braces [ ] not ( )
Change them and try it. Functions use ( ) variable arrays use [ ]
Regards
Jim
void setup() {
Serial.begin(115200);
Serial.println("================");
Serial.println(" LED Blink ");
Serial.println("================");
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
Serial.print('.');
}
Well, as easy as that-when you know how !! It works. I almost can’t believe it,something as [seemingly] simple as the type of bracket.
Thank you to everyone who chimed in and offered their advice-I really appreciate it.
I’m keen to get stuck in and work through the remainder of the course. Thanks again.
Cheers-Ian
Glad you have it fixed.
C++ programming language is very syntax orientated, … still gets me, … often.
A single characters in the wrong place can make the compile fail.
And characters all have special meanings.
Good learning process in this case for you.
Cheers
Jim
EDIT: As Robin pointed out I should have added ++ after my reference to C programming language. I have fixed the post. Starting out I guess we should use correct terminology. Cheers
@James46717
Just being pedantic, but the native language of the Arduino IDE is C++ (C plus plus) and not C.
And yes, it can be difficult, but like many programming languages, familiarity and regular use make it easier.
@Ian80523
I still recommend reading up on the language and syntax. Links posted earlier in this thread, or this one below (Arduino reference):
https://www.arduino.cc/reference/en/
Yes, I’ll certainly have a read of that and hopefully get my head around it.
Thanks again.
Regards-Ian