From f1b7e9364074571899063e9f668a00eb60d2269a Mon Sep 17 00:00:00 2001 From: Elena of Valhalla'' Grandi Date: Wed, 14 Aug 2013 11:14:47 +0200 Subject: Migration to arduino 1.0 --- Colours.cpp | 3 +-- Colours.h | 2 +- examples/hue_rotation/hue_rotation.ino | 14 ++++++++++++++ examples/hue_rotation/hue_rotation.pde | 14 -------------- 4 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 examples/hue_rotation/hue_rotation.ino delete mode 100644 examples/hue_rotation/hue_rotation.pde diff --git a/Colours.cpp b/Colours.cpp index c121391..bb77e85 100644 --- a/Colours.cpp +++ b/Colours.cpp @@ -2,7 +2,7 @@ * Colours - library for managing the colours on RGB LEDs */ -#include "WProgram.h" +#include "Arduino.h" #include "Colours.h" Colours::Colours(int rPin,int gPin,int bPin) { @@ -51,5 +51,4 @@ void Colours::writeHSV(unsigned int h,unsigned char s,unsigned char v) { break; } } - } diff --git a/Colours.h b/Colours.h index bf6e5d6..cd08bfc 100644 --- a/Colours.h +++ b/Colours.h @@ -5,7 +5,7 @@ #ifndef COLOURS_h #define COLOURS_h -#include "WProgram.h" +#include "Arduino.h" class Colours { public: diff --git a/examples/hue_rotation/hue_rotation.ino b/examples/hue_rotation/hue_rotation.ino new file mode 100644 index 0000000..2151618 --- /dev/null +++ b/examples/hue_rotation/hue_rotation.ino @@ -0,0 +1,14 @@ +#include + +Colours colours(6,5,3); + +void setup() { +} + +void loop() { + int h; + for (h=0;h<360;h++) { + colours.writeHSV(h,255,255); + delay(50); + } +} diff --git a/examples/hue_rotation/hue_rotation.pde b/examples/hue_rotation/hue_rotation.pde deleted file mode 100644 index 2151618..0000000 --- a/examples/hue_rotation/hue_rotation.pde +++ /dev/null @@ -1,14 +0,0 @@ -#include - -Colours colours(6,5,3); - -void setup() { -} - -void loop() { - int h; - for (h=0;h<360;h++) { - colours.writeHSV(h,255,255); - delay(50); - } -} -- cgit v1.2.3