diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2025-03-14 09:20:28 +0100 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2025-03-14 09:20:28 +0100 | 
| commit | 38b9b25d4612298f5599e7471568714ea1fa2a01 (patch) | |
| tree | 1ad152e92ab481fe63ad75e12eccba9292cbf62b /src/examples/hue_rotation | |
| parent | 8f34001c8a2eec5594bee45f8429622b377de084 (diff) | |
Moved arduino version in its own directory
Diffstat (limited to 'src/examples/hue_rotation')
| -rw-r--r-- | src/examples/hue_rotation/hue_rotation.ino | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/src/examples/hue_rotation/hue_rotation.ino b/src/examples/hue_rotation/hue_rotation.ino new file mode 100644 index 0000000..00a48d7 --- /dev/null +++ b/src/examples/hue_rotation/hue_rotation.ino @@ -0,0 +1,27 @@ +/* + * hue_rotation  - Cycle an RGB LED through hue values. + * Copyright 2009, 2013 Elena Grandi + *  + * This work is free. You can redistribute it and/or modify it under the + * terms of the Do What The Fuck You Want To Public License, Version 2, + * as published by Sam Hocevar. See the examples/wtfpl-2.txt file  + * for more details. + */ + +#include <Colours.h> + +Colours colours(6,5,3); +// For common cathode RGB LEDs comment the line above and uncomment  +// the one below. +//Colours colours(6,5,3,true); + +void setup() { +} + +void loop() { +    int h; +    for (h=0;h<360;h++) { +        colours.writeHSV(h,255,255); +        delay(50); +    } +}  | 
