Tutorial.Fade History

Hide minor edits - Show changes to output

May 02, 2012, at 03:35 AM by Scott Fitzgerald -
Changed line 42 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.ino lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/01.Basics/Fade/Fade.ino lang=arduino tabwidth=4:)
November 16, 2011, at 12:26 AM by Scott Fitzgerald -
Changed lines 39-40 from:
(:div class=code :)
to:

(:div class=code:)
November 16, 2011, at 12:22 AM by Scott Fitzgerald -
Changed line 41 from:
(:source http://arduino.cc/en/pub/code/new-extension/build/shared/examples/1.Basics/Fade/Fade.ino lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.ino lang=arduino tabwidth=4:)
September 30, 2011, at 02:57 AM by Scott Fitzgerald -
Changed line 41 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/new-extension/build/shared/examples/1.Basics/Fade/Fade.ino lang=arduino tabwidth=4:)
September 28, 2010, at 01:29 PM by Tom Igoe -
Changed lines 29-30 from:
(:div class=code :)
to:
Changed lines 39-40 from:
to:
(:div class=code :)
September 23, 2010, at 10:28 PM by Christian Cerrito -
Changed lines 3-4 from:
!!Fading
to:
!!!Fading
Changed lines 7-8 from:
!! Hardware Required
to:
!!! Hardware Required
September 17, 2010, at 05:16 PM by Tom Igoe -
Changed lines 53-57 from:
* [[BareMinimum]] - bare minimum code needed to start a sketch
* [[BlinkBasic | 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
* [[Analog Input]] - use a potentiometer to control an LED's brightness
to:
(:include BasicsSeeAlsoIncludes :)
September 16, 2010, at 10:02 PM by Tom Igoe -
Changed line 41 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde lang=arduino tabwidth=4:)
September 16, 2010, at 10:01 PM by Tom Igoe -
Changed line 41 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde language=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde lang=arduino tabwidth=4:)
September 08, 2010, at 08:03 PM by Tom Igoe -
Changed lines 35-51 from:
In order to fade your LED off and on, gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. You do this using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.

In the first of these @@for()@@ loops:

@@for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5)@@

a variable called @@fadeValue@@ starts with a value of 0 and is increased by five points each pass through the lfor loop while @@fadeValue@@ is @@<=@@ (less then or equal too) 255. This number is then written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.

After @@fadeValue@@ reaches it's maximum value, 255, this process is reversed in the second loop:

@@for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5)@@

This time, 5 points is subtracted from @@fadeValue@@ with each cycle of your program. After another short @@delay()@@, the process is repeated while @@fadeValue@@ is >= (greater than or equal to) 0, gradually dimming your LED.

Once @@fadeValue@@ goes back to 0, the program moves back into original @@for()@@ loop, and the entire cycle begins again.

to:
In order to fade your LED off and on, gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. In the sketch below, the PWM value is set using a variable called @@brightness@@. Each time through the loop, it increases by the value of the variable @@fadeAmount@@.

If @@brightness@@ is at either extreme of its value (either 0 or 255), then @@fadeAmount@@ is changed to its negative. In other words, if @@fadeAmount@@ is 5, then it is set to -5. If it's 55, then it's set to 5. The next time through the loop, this change causes @@brightness@@ to change direction as well.

@@analogWrite()@@ can change the PWM value very fast, so the delay at the end of the sketch controls the speed of the fade. Try changing the value of the delay and see how it changes the program.
September 08, 2010, at 07:56 PM by Tom Igoe -
Changed lines 35-36 from:
In order to fade your LED off and on, it is necessary to gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. You accomplish this using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.
to:
In order to fade your LED off and on, gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. You do this using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.
Changed lines 41-42 from:
a variable called @@fadeValue@@, with an original value of 0, is increased by five points each pass through the program while @@fadeValue@@ is @@<=@@ (less then or equal too) 255. This number is then written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.
to:
a variable called @@fadeValue@@ starts with a value of 0 and is increased by five points each pass through the lfor loop while @@fadeValue@@ is @@<=@@ (less then or equal too) 255. This number is then written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.
September 08, 2010, at 07:52 PM by Tom Igoe -
Changed lines 5-6 from:
Demonstrates the use of the [[Reference/analogWrite | analogWrite()]] function in fading an LED off and on. AnalogWrite uses [[pulse width modulation (PWM)]], turning a digital pin on and off very quickly, to create a fading effect.
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite()]] function in fading an LED off and on. AnalogWrite uses [[Tutorial/PWM | pulse width modulation (PWM)]], turning a digital pin on and off very quickly, to create a fading effect.
September 08, 2010, at 07:51 PM by Tom Igoe -
Changed lines 5-6 from:
Demonstrates the use of the [[Reference/analogWrite | analogWrite()]] function in fading an LED off and on.
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite()]] function in fading an LED off and on. AnalogWrite uses [[pulse width modulation (PWM)]], turning a digital pin on and off very quickly, to create a fading effect.
Changed lines 31-34 from:
After declaring pin 9 to be your @@ledPin@@, there is nothing to take care of in the @@setup()@@ function of your code.

The @@analogWrite()@@ function that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value to write.
to:
After declaring pin 9 to be your @@ledPin@@, there is nothing to do in the @@setup()@@ function of your code.

The @@analogWrite()@@ function that you will be using in the main loop of your code requires two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value to write.
September 08, 2010, at 07:48 PM by Tom Igoe -
Changed line 53 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/3.Analog/Fading/Fading.pde language=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde language=arduino tabwidth=4:)
September 08, 2010, at 07:47 PM by Tom Igoe -
Changed lines 15-16 from:
Connect the anode (the longer, positive leg) of your LED to digital output pin 9 on your Arduino through a 220-ohm resistor. Connect the cathode (the shorter, negative leg) directly to ground.
to:
Connect the '''anode''' (the longer, positive leg) of your LED to digital output pin 9 on your Arduino through a 220-ohm resistor. Connect the '''cathode''' (the shorter, negative leg) directly to ground.
September 08, 2010, at 07:47 PM by Tom Igoe -
August 29, 2010, at 06:54 PM by Christian Cerrito -
Changed lines 31-32 from:
After declaring pin 9 to be your @@ledPin@@, there is nothing to take care of in the @@setup()@@ function of your code.
to:
After declaring pin 9 to be your @@ledPin@@, there is nothing to take care of in the @@setup()@@ function of your code.
Changed lines 35-36 from:
In order to fade your LED off and on, it is necessary to gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. This is accomplished using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.
to:
In order to fade your LED off and on, it is necessary to gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. You accomplish this using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.
August 24, 2010, at 07:53 AM by Christian Cerrito -
August 24, 2010, at 07:44 AM by Christian Cerrito -
Changed lines 56-57 from:
*** See Also
to:
!!!See Also
August 24, 2010, at 07:44 AM by Christian Cerrito -
Changed lines 60-63 from:
* [[(Reference/)AnalogWrite]]()
* [[(Reference/)Int]]
* [[(Reference/)For]]
to:
* [[(Reference/)analogWrite]]()
* [[(Reference/)int]]
* [[(Reference/)for]]
* [[(Tutorial/)PWM]]
Changed lines 67-69 from:
* [[DigitalReadSerial]] - Read a switch, print the state out to the Serial Monitor
* [[AnalogReadSerial]] - Read a potentiometer, print the state out to the Serial Monitor
* [[Analog Input]] - Use a potentiometer to control an LED's brightness
to:
* [[DigitalReadSerial]] - read a switch, print the state out to the Serial Monitor
* [[AnalogReadSerial]] - read a potentiometer, print the state out to the Serial Monitor
* [[Analog Input]] - use a potentiometer to control an LED's brightness
August 24, 2010, at 07:42 AM by Christian Cerrito -
Changed lines 55-68 from:
(:divend:)
to:
(:divend:)
*** See Also

* [[(Reference/)setup]]()
* [[(Reference/)loop]]()
* [[(Reference/)AnalogWrite]]()
* [[(Reference/)Int]]
* [[(Reference/)For]]

* [[BareMinimum]] - bare minimum code needed to start a sketch
* [[BlinkBasic | 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
* [[Analog Input]] - Use a potentiometer to control an LED's brightness
August 23, 2010, at 11:51 PM by Christian Cerrito -
Changed lines 11-13 from:
* LED
* 220 ohm resistor
to:
* a LED
* a 220 ohm resistor
August 23, 2010, at 11:32 PM by Christian Cerrito -
Changed lines 49-51 from:
Once @@fadeValue@@ again equals 0, we move back into original @@for()@@ loop, and the entire cycle begins again.

to:
Once @@fadeValue@@ goes back to 0, the program moves back into original @@for()@@ loop, and the entire cycle begins again.

August 23, 2010, at 11:09 PM by Christian Cerrito -
Changed lines 31-36 from:
After declaring pin 9 to be our @@ledPin@@, there is nothing to cake care of in the @@setup()@@ function of your code.

The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value, from 0 to to 255, to write.

In order to gradually fade your LED of and on, you first need to gradually increase this PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again for a complete cycle. This is accomplished using two [[Reference/For | @@for()@@]] loops.
to:
After declaring pin 9 to be your @@ledPin@@, there is nothing to take care of in the @@setup()@@ function of your code.

The @@analogWrite()@@ function that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value to write.

In order to fade your LED off and on, it is necessary to gradually increase your PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again to complete the cycle. This is accomplished using two [[Reference/For | @@for()@@]] loops, one which fades your LED up, and another which dims it back down.
Changed lines 41-42 from:
a variable called @@fadeValue@@, with an original value of 0, is increased by five points each pass through the program. While @@fadeValue@@ is @@<=@@ (less then or equal too) 255, this number is written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.
to:
a variable called @@fadeValue@@, with an original value of 0, is increased by five points each pass through the program while @@fadeValue@@ is @@<=@@ (less then or equal too) 255. This number is then written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.
Changed lines 47-49 from:
This time, 5 points is subtracted from @@fadeValue@@ and written to @@ledPin@@. After another short @@delay()@@, the process is repeated all the while @@fadeValue@@ is >= (greater than or equal to) 0, gradually dimming your LED. Once @@fadeValue@@ hits 0, we move back into original @@for()@@ loop, and the cycle begins again.

to:
This time, 5 points is subtracted from @@fadeValue@@ with each cycle of your program. After another short @@delay()@@, the process is repeated while @@fadeValue@@ is >= (greater than or equal to) 0, gradually dimming your LED.

Once @@fadeValue@@ again equals 0, we move back into original @@for()@@ loop, and the entire cycle begins again.

August 23, 2010, at 11:01 PM by Christian Cerrito -
Changed lines 33-49 from:
The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value value to write. @@analogWrite()@@ is capable of
to:
The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value, from 0 to to 255, to write.

In order to gradually fade your LED of and on, you first need to gradually increase this PWM value from 0 (all the way off) to 255 (all the way on), and then back to 0 once again for a complete cycle. This is accomplished using two [[Reference/For | @@for()@@]] loops.

In the first of these @@for()@@ loops:

@@for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5)@@

a variable called @@fadeValue@@, with an original value of 0, is increased by five points each pass through the program. While @@fadeValue@@ is @@<=@@ (less then or equal too) 255, this number is written to your @@ledPin@@, gradually increasing the brightness of your LED. A short @@delay()@@ of 30 milliseconds is used during each loop of this process, creating a gradual fade.

After @@fadeValue@@ reaches it's maximum value, 255, this process is reversed in the second loop:

@@for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5)@@

This time, 5 points is subtracted from @@fadeValue@@ and written to @@ledPin@@. After another short @@delay()@@, the process is repeated all the while @@fadeValue@@ is >= (greater than or equal to) 0, gradually dimming your LED. Once @@fadeValue@@ hits 0, we move back into original @@for()@@ loop, and the cycle begins again.

August 23, 2010, at 10:39 PM by Christian Cerrito -
Changed lines 5-6 from:
Demonstrates the use of the [[Reference/analogWrite | analogWrite] function]] in fading an LED off and on.
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite()]] function in fading an LED off and on.
Changed line 33 from:
The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [Tutorial/PWM | PWM] value]] value to write. @@analogWrite()@@ is capable of
to:
The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [[Tutorial/PWM | PWM]] value value to write. @@analogWrite()@@ is capable of
August 23, 2010, at 10:37 PM by Christian Cerrito -
Changed lines 5-6 from:
Demonstrates the use of the [[Reference/analogWrite | analogWrite]] in fading an LED off and on.
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite] function]] in fading an LED off and on.
Added lines 30-33:

After declaring pin 9 to be our @@ledPin@@, there is nothing to cake care of in the @@setup()@@ function of your code.

The @@analogWrite()@@ functions that you will be using in the main loop of your code expect two arguments: One telling the function which pin to write to, and one indicating what [Tutorial/PWM | PWM] value]] value to write. @@analogWrite()@@ is capable of
August 23, 2010, at 10:19 PM by Christian Cerrito -
August 23, 2010, at 10:17 PM by Christian Cerrito -
Changed lines 5-6 from:
Demonstrates the use of the [[Reference/analogWrite | analogWrite]]
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite]] in fading an LED off and on.
Changed lines 15-16 from:
An LED connected to digital output pin 9 through a 220-ohm resistor.
to:
Connect the anode (the longer, positive leg) of your LED to digital output pin 9 on your Arduino through a 220-ohm resistor. Connect the cathode (the shorter, negative leg) directly to ground.
August 23, 2010, at 10:14 PM by Christian Cerrito -
Changed lines 5-6 from:
Demonstrates the use of analog output (PWM) to fade an LED.
to:
Demonstrates the use of the [[Reference/analogWrite | analogWrite]]
August 23, 2010, at 10:12 PM by Christian Cerrito -
Changed lines 7-13 from:
to:
!! Hardware Required

* Arduino board
* Breadboard
* LED
* 220 ohm resistor
August 23, 2010, at 09:47 PM by Christian Cerrito -
Changed lines 17-18 from:
%width=400px%[[Attach:simplefade_pin9_schem.png |Attach:simplefade_pin9_schem.png]]
to:
%width=300px%[[Attach:simplefade_pin9_schem.png | Attach:simplefade_pin9_schem.png]]
August 23, 2010, at 09:45 PM by Christian Cerrito -
Changed lines 12-13 from:
%width=400px%[[Attach:simple_fade_pin9_bb.png | Attach:simplefade_pin9_bb.png]]
to:
%width=400px%[[Attach:simplefade_bb.png |Attach:simplefade_bb.png]]
August 23, 2010, at 09:43 PM by Christian Cerrito -
Changed lines 12-13 from:
%width=400px%[[Attach:simple_fade_pin9_bb.png |Attach:simplefade_pin9_bb.png]]
to:
%width=400px%[[Attach:simple_fade_pin9_bb.png | Attach:simplefade_pin9_bb.png]]
August 23, 2010, at 09:41 PM by Christian Cerrito -
Changed lines 12-13 from:
%width=400px%[[Attach:dimmer-circuit3.png |Attach:dimmer-circuit3.png]]
to:
%width=400px%[[Attach:simple_fade_pin9_bb.png |Attach:simplefade_pin9_bb.png]]
Changed lines 17-18 from:
%width=400px%[[Attach:simplefade_pin9_bb.png |Attach:simplefade_pin9_bb.png]]
to:
%width=400px%[[Attach:simplefade_pin9_schem.png |Attach:simplefade_pin9_schem.png]]
August 23, 2010, at 09:40 PM by Christian Cerrito -
Changed lines 17-18 from:
%width=400px%[[Attach:dimmer_schem.png |Attach:dimmer_schem.png]]
to:
%width=400px%[[Attach:simplefade_pin9_bb.png |Attach:simplefade_pin9_bb.png]]
August 23, 2010, at 09:39 PM by Christian Cerrito -
Changed lines 1-18 from:
''Examples > Basics''

!!!Example Name

Description

(:div class=BOM :)
!!!Hardware Required
* Arduino Board
* LED
* 220 ohm resistor
(:divend:)

!!!Circuit
(:div class=circuit :)

%height=300px%[[Attach:fade_bb.png | Attach:simplefade_pin9_bb.png]]
to:
''Examples > Analog I/O''

!!Fading

Demonstrates the use of analog output (PWM) to fade an LED.


!!! Circuit
An LED connected to digital output pin 9 through a 220-ohm resistor.

[-click the image to enlarge-]
%width=400px%[[Attach:dimmer-circuit3.png |Attach:dimmer-circuit3.png]]

!!!Schematic

[-click the image to enlarge-]
%width=400px%[[Attach:dimmer_schem.png |Attach:dimmer_schem.png]]
Changed lines 21-31 from:
(:divend:)

!!!Schematic
(:div class=circuit :)
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:simplefade_pin9_sch.png]]
=======
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:simplefade_pin9_sch.png]]
(:divend:)

Describe what's going on here
to:

!!!Code
Changed lines 24-30 from:
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde language=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[Reference/CommandName | Reference page for this command]]
* [[Other example in this category]]
to:

(:source http://arduino.cc/en/pub/code/master/build/shared/examples/3.Analog/Fading/Fading.pde language=arduino tabwidth=4:)

(:divend:)
August 23, 2010, at 09:36 PM by Christian Cerrito -
Deleted line 24:
<<<<<<<
Changed lines 28-30 from:
>>>>>>>
(:divend:)
to:
(:divend:)
August 23, 2010, at 09:35 PM by Christian Cerrito -
Changed lines 17-18 from:
%height=300px%[[Attach:fade_bb.png | Attach:simplefade_pin_bb.png]]
to:
%height=300px%[[Attach:fade_bb.png | Attach:simplefade_pin9_bb.png]]
Changed lines 25-29 from:
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:fade_sch.png]]
to:
<<<<<<<
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:simplefade_pin9_sch.png]]
=======
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:simplefade_pin9_sch.png]]
>>>>>>>
August 23, 2010, at 09:34 PM by Christian Cerrito -
Added lines 10-11:
* LED
* 220 ohm resistor
Changed lines 17-18 from:
%height=300px%[[Attach:fade_bb.png | Attach:fade_bb.png]]
to:
%height=300px%[[Attach:fade_bb.png | Attach:simplefade_pin_bb.png]]
Changed line 25 from:
%height=300px%[[ Attach:fade_sch.png | Attach:fade_sch.png]]
to:
%height=300px%[[ Attach:simplefade_pin9_sch.png | Attach:fade_sch.png]]
August 21, 2010, at 08:37 AM by Christian Cerrito -
Changed lines 15-16 from:
%height=300px%[[Attach:ExampleCircuit_bb.png | Attach:ExampleCircuit_bb.png]]
to:
%height=300px%[[Attach:fade_bb.png | Attach:fade_bb.png]]
Changed line 23 from:
%height=300px%[[ Attach:ExampleCircuit_sch.png | Attach:ExampleCircuit_sch.png]]
to:
%height=300px%[[ Attach:fade_sch.png | Attach:fade_sch.png]]
August 13, 2010, at 10:23 PM by Tom Igoe -
Added lines 1-35:
''Examples > Basics''

!!!Example Name

Description

(:div class=BOM :)
!!!Hardware Required
* Arduino Board
(:divend:)

!!!Circuit
(:div class=circuit :)

%height=300px%[[Attach:ExampleCircuit_bb.png | Attach:ExampleCircuit_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

(:divend:)

!!!Schematic
(:div class=circuit :)
%height=300px%[[ Attach:ExampleCircuit_sch.png | Attach:ExampleCircuit_sch.png]]
(:divend:)

Describe what's going on here

(:div class=code :)
(:source http://arduino.cc/en/pub/code/master/build/shared/examples/1.Basics/Fade/Fade.pde language=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[Reference/CommandName | Reference page for this command]]
* [[Other example in this category]]

Share