No text appearing

Can someone help a new user with a Mega 2560 board. The image shows the script and output but the Serial monitor outputs 27748 and not Hello World.

Hello watchman2020

Try

Serial.println(F("Hello World")); 

and take a view here:

Have a nice day and enjoy programming in C++ and learning.

Thank you for your reply and it works. I was misdirected by having to replace quotation marks in a previous example because copying from another Windows example where it had substituted smart quotes.

@watchman2020, welcome.

Please send some time reading How to get the best out of this forum (again?).

Screenshots of code and errors (if you have them) are 99.9% of the time useless. What are you going to do if your code no longer fits in the editor window of the IDE? Post two screenshots? Do you expect us to type every line from your screenshots to get to a code that we can analyse if needed?

If you set the warning level in the IDE (menu file -> preferences) to anything but None, you will get the below warning.

C:\Users\sterretje\AppData\Local\Temp\arduino_modified_sketch_121607\sketch_jul24a.ino:3:16: warning: character constant too long for its type
 Serial.println('Hello world');
                ^~~~~~~~~~~~~

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