Reference.Setup History

Hide minor edits - Show changes to markup

June 06, 2009, at 05:25 AM by Paul Badger -
Changed lines 3-4 from:

The setup() function is called only once, when a sketch starts. Use it to initialize your variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

to:

The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

June 06, 2009, at 05:24 AM by Paul Badger -
Changed lines 3-4 from:

The setup() function is called when your program starts. Use it to initialize your variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

to:

The setup() function is called only once, when a sketch starts. Use it to initialize your variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

September 26, 2008, at 03:45 PM by Paul Badger -
Changed line 11 from:
  beginSerial(9600);
to:
  Serial.begin(9600);
January 03, 2008, at 05:24 AM by Paul Badger -
Changed lines 3-4 from:

The setup() function is called when your program starts. Use it to initialize your variables, pin modes, start using libraries, etc.

to:

The setup() function is called when your program starts. Use it to initialize your variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

September 01, 2007, at 05:15 AM by David A. Mellis -
Changed lines 17-22 from:
  if (digitalRead(buttonPin) == HIGH)
    serialWrite('H');
  else
    serialWrite('L');

  delay(1000);
to:
  // ...
April 16, 2007, at 04:18 PM by Paul Badger -
Changed lines 1-2 from:

setup()

to:

setup()

April 16, 2007, at 04:17 PM by Paul Badger -
Deleted lines 25-26:
March 24, 2006, at 11:36 PM by Jeff Gray -
Changed lines 1-2 from:

Setup

to:

setup()

March 24, 2006, at 11:35 PM by Jeff Gray -
Changed lines 1-2 from:

setup

to:

Setup

March 24, 2006, at 11:30 PM by Jeff Gray -
Deleted line 5:
Deleted line 6:
March 24, 2006, at 08:37 PM by Jeff Gray -
January 13, 2006, at 12:34 AM by 82.186.237.10 -
Added lines 28-29:
December 16, 2005, at 10:13 PM by 85.18.81.162 -
Changed lines 1-3 from:

Setup

to:

setup

The setup() function is called when your program starts. Use it to initialize your variables, pin modes, start using libraries, etc.

Example

 

int buttonPin = 3;

void setup()
{
  beginSerial(9600);
  pinMode(buttonPin, INPUT);
}

void loop()
{
  if (digitalRead(buttonPin) == HIGH)
    serialWrite('H');
  else
    serialWrite('L');

  delay(1000);
}

November 27, 2005, at 04:58 PM by 81.154.199.248 -
Added lines 1-3:

Setup

Share