1 Reply Latest reply on Apr 25, 2014 9:36 AM by Intel_Jesus

    No output to serial window

    conor100

      Hi guys,

       

      Suddenly noting is appearing in the serial window when I upload a sketch. The sketch complies and transfers successfully but noting appears in the window. I am totally stumped as to what is wrong, I've tried everything I can think of. Any thoughts?

       

      void setup() {
        Serial.println("hello");
      }
      
      void loop() {
        // put your main code here, to run repeatedly: 
      }
      

       

      Thanks

      C

        • 1. Re: No output to serial window
          Intel_Jesus

          Hi conor100,

           

          It looks like you need to initialize the Serial before you print. Also, if you’re printing in the setup I would add a 1 second delay. The setup will only run one time, by the time you open the serial window it already finished running and you will not see “hello”. Take a look at the following code:

           

          void setup(){
              delay(1000);
              Serial.begin(9600);
              Serial.println("hello");
            }
            void loop(){
                   
            }
          

           

          Regards,

          Intel_Jesus