Tuesday 3 July 2018

The Sketch That Does Nothing

One of the joys of playing with Arduinos is putting something together, and then taking it apart and building something else.

The various shields sometimes make use of the same pins, and the result of using the previous sketch might be unpredictable.

This sketch literally does nothing, except tell you it does nothing over the serial link.

void setup() {
  // Technology Is Not Dull 2018
  // Use this project to clear sketch from Arduino Board 
  // before fitting a shield so the starting sketch does not 
  // cause any issues with the newly fitted shield.
    Serial.begin(9600);   
    Serial.println("Starting The Project That Does Nothing!");    
    Serial.println("Closing Serial port");
    Serial.end();
}

void loop() {
  // Nothing to see, move along...

}