Trying to learn how to code Sketches

AWOL:

A sketch also has a main() function,

No, it doesn't.
The IDE adds the main to the sketch that you write.

That's what I wrote in my previous reply :wink:

kind regards,

Jos