Tutorial.BareMinimum History

Show minor edits - Show changes to markup

May 02, 2012, at 03:34 AM by Scott Fitzgerald -
Changed line 32 from:
to:
November 16, 2011, at 12:21 AM by Scott Fitzgerald -
Changed line 32 from:
to:
November 16, 2011, at 12:20 AM by Scott Fitzgerald -
Changed line 32 from:
to:
September 30, 2011, at 02:54 AM by Scott Fitzgerald - Changed the code Example
Changed line 32 from:
to:
September 23, 2010, at 08:31 PM by Christian Cerrito -
Added line 14:

Only your Arduino Board is needed for this example.

Deleted line 17:

Only your Arduino Board is needed for this example.

Deleted line 20:
September 17, 2010, at 05:08 PM by Tom Igoe -
Added lines 38-40:
September 17, 2010, at 05:07 PM by Tom Igoe -
Changed lines 38-48 from:

to:
August 27, 2010, at 05:59 AM by Christian Cerrito -
Added lines 15-16:

image developed using Fritzing. For more circuit examples, see the Fritzing project page

August 27, 2010, at 05:50 AM by Christian Cerrito -
Changed line 14 from:
to:
August 27, 2010, at 05:50 AM by Christian Cerrito -
August 27, 2010, at 05:50 AM by Christian Cerrito -
August 24, 2010, at 07:49 AM by Christian Cerrito -
Added line 38:
August 24, 2010, at 07:46 AM by Christian Cerrito -
Changed lines 38-45 from:
to:
  • Blink - turn an LED on and off.
  • DigitalReadSerial - read a switch, print the state out to the Serial Monitor
  • AnalogReadSerial - read a potentiometer, print the state out to the Serial Monitor
  • Fade - demonstrates the use of analog output to fade an LED

August 24, 2010, at 07:15 AM by Christian Cerrito -
Added lines 38-45:
August 20, 2010, at 10:28 PM by Christian Cerrito -
Changed lines 28-29 from:

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting your code like this is particularly helpful in explaining, both to yourself and others, how your program functions step by step.

to:

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting your code like this can be particularly helpful in explaining, both to yourself and others, how your program functions step by step.

August 20, 2010, at 10:27 PM by Christian Cerrito -
Changed lines 7-14 from:

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.

After creating a setup() function, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond as it runs. Code in the loop() section of your sketch is used to actively control the Arduino board.

The code below won't actually do anything, but it's structure is useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code.

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting your code like this is particularly helpful in explaining, both to yourself and others, how your program functions step by step.

to:
Added lines 21-29:

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.

After creating a setup() function, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond as it runs. Code in the loop() section of your sketch is used to actively control the Arduino board.

The code below won't actually do anything, but it's structure is useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code.

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting your code like this is particularly helpful in explaining, both to yourself and others, how your program functions step by step.

August 20, 2010, at 10:26 PM by Christian Cerrito -
Changed line 27 from:

'Code

to:

Code

August 20, 2010, at 10:25 PM by Christian Cerrito -
Changed line 22 from:

None

to:

Only your Arduino Board is needed for this example.

Added lines 25-27:

'Code

August 20, 2010, at 10:24 PM by Christian Cerrito -
Changed lines 13-14 from:

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.

to:

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting your code like this is particularly helpful in explaining, both to yourself and others, how your program functions step by step.

August 20, 2010, at 10:22 PM by Christian Cerrito -
Changed line 21 from:
to:
August 20, 2010, at 10:21 PM by Christian Cerrito -
Added line 21:
August 17, 2010, at 10:37 PM by Christian Cerrito -
Changed lines 13-14 from:
 Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.  
to:

Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.

August 17, 2010, at 10:36 PM by Christian Cerrito -
Changed lines 9-12 from:

After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board.

The code below won't actually do anything, but it's useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.

to:

After creating a setup() function, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond as it runs. Code in the loop() section of your sketch is used to actively control the Arduino board.

The code below won't actually do anything, but it's structure is useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code.

 Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.  
Changed lines 30-31 from:
to:
August 17, 2010, at 10:29 PM by Christian Cerrito -
August 17, 2010, at 10:28 PM by Christian Cerrito -
Changed lines 11-12 from:

The code below won't actually do anything, but it's useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it,

to:

The code below won't actually do anything, but it's useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it. Commenting is particularly helpful in explaining, both to yourself and others, how your code functions step by step.

August 17, 2010, at 10:26 PM by Christian Cerrito -
Changed lines 5-8 from:

This example contains the bare minimum of code you need for an Arduino sketch to compile: thesetup() method and the loop() method.

This sketch won't actually do anything, but it's useful for copying and pasting to get you started on any sketch. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it.

to:

This example contains the bare minimum of code you need for an Arduino sketch to compile: the setup() method and the loop() method.

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.

After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board.

The code below won't actually do anything, but it's useful for copying and pasting to get you started on any sketch of your own. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it,

August 15, 2010, at 08:11 PM by Tom Igoe -
Changed lines 3-4 from:

Example Name

to:

Bare Minimum code needed to get started

August 15, 2010, at 08:10 PM by Tom Igoe -
Changed lines 7-8 from:

This sketch won't actually do anything, but it's useful for copying and pasting to get you started on any sketch.

to:

This sketch won't actually do anything, but it's useful for copying and pasting to get you started on any sketch. It also shows you how to make comments in your code. Any line that starts with two slashes (//) will not be read by the compiler, so you can write anything you want after it.

August 15, 2010, at 08:09 PM by Tom Igoe -
Changed lines 5-6 from:

Description

to:

This example contains the bare minimum of code you need for an Arduino sketch to compile: thesetup() method and the loop() method.

This sketch won't actually do anything, but it's useful for copying and pasting to get you started on any sketch.

Changed lines 15-20 from:
to:

None

Changed lines 18-20 from:
to:
Changed lines 22-28 from:
to:
August 13, 2010, at 10:22 PM by Tom Igoe -
Added lines 1-35:

Share