<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_Fading</id>
	<title>Arduino: Fading - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_Fading"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Arduino:_Fading&amp;action=history"/>
	<updated>2026-04-20T15:27:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Arduino:_Fading&amp;diff=64623&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;thumb   ==Code==   /*    Fading    This example shows how to fade an LED using the analogWrite() function.    The circuit:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Arduino:_Fading&amp;diff=64623&amp;oldid=prev"/>
		<updated>2022-03-06T00:35:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:Arduino-circuit-fading.png&quot; title=&quot;File:Arduino-circuit-fading.png&quot;&gt;center|300px|thumb&lt;/a&gt;   ==Code==   /*    Fading    This example shows how to fade an LED using the analogWrite() function.    The circuit:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Arduino-circuit-fading.png|center|300px|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
 /*&lt;br /&gt;
   Fading&lt;br /&gt;
   This example shows how to fade an LED using the analogWrite() function.&lt;br /&gt;
   The circuit:&lt;br /&gt;
   - LED attached from digital pin 9 to ground.&lt;br /&gt;
 &lt;br /&gt;
   created 1 Nov 2008&lt;br /&gt;
   by David A. Mellis&lt;br /&gt;
   modified 30 Aug 2011&lt;br /&gt;
   by Tom Igoe&lt;br /&gt;
   This example code is in the public domain.&lt;br /&gt;
   http://www.arduino.cc/en/Tutorial/Fading&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
 int ledPin = 9;    // LED connected to digital pin 9&lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   // nothing happens in setup&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop() {&lt;br /&gt;
   // fade in from min to max in increments of 5 points:&lt;br /&gt;
   for (int fadeValue = 0 ; fadeValue &amp;lt;= 255; fadeValue += 5) {&lt;br /&gt;
     // sets the value (range from 0 to 255):&lt;br /&gt;
     analogWrite(ledPin, fadeValue);&lt;br /&gt;
     // wait for 30 milliseconds to see the dimming effect&lt;br /&gt;
     delay(30);&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   // fade out from max to min in increments of 5 points:&lt;br /&gt;
   for (int fadeValue = 255 ; fadeValue &amp;gt;= 0; fadeValue -= 5) {&lt;br /&gt;
     // sets the value (range from 0 to 255):&lt;br /&gt;
     analogWrite(ledPin, fadeValue);&lt;br /&gt;
     // wait for 30 milliseconds to see the dimming effect&lt;br /&gt;
     delay(30);&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://www.arduino.cc/en/Tutorial/BuiltInExamples/Fading&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>