From 9f40fd54fa05bf8058077e770eda1ac97bfe1396 Mon Sep 17 00:00:00 2001 From: Scott Chacon Date: Wed, 8 Oct 2014 10:12:43 +0200 Subject: [PATCH 1/2] properly signed off Signed-off-by: Scott Chacon --- fade.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fade.ino b/fade.ino index 599aca1..395eeb3 100644 --- a/fade.ino +++ b/fade.ino @@ -3,10 +3,10 @@ int brightness = 0; // how bright the LED is int fadeAmount = 5; // how many points to fade the LED by // the setup routine runs once when you press reset: -void setup() { +void setup() { // declare pin 9 to be an output: pinMode(led, OUTPUT); -} +} // the loop routine runs over and over again forever: void loop() { From ee7aa38547661af944a945f8d78342e4da28ad25 Mon Sep 17 00:00:00 2001 From: Scott Chacon Date: Wed, 8 Oct 2014 10:13:07 +0200 Subject: [PATCH 2/2] forgot to sign off --- fade.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fade.ino b/fade.ino index 395eeb3..44de306 100644 --- a/fade.ino +++ b/fade.ino @@ -9,9 +9,9 @@ void setup() { } // the loop routine runs over and over again forever: -void loop() { +void loop() { // set the brightness of pin 9: - analogWrite(led, brightness); + analogWrite(led, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeAmount;