From 38b9b25d4612298f5599e7471568714ea1fa2a01 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 14 Mar 2025 09:20:28 +0100 Subject: Moved arduino version in its own directory --- src/examples/hue_rotation/hue_rotation.ino | 27 +++++++++++++++++++++++++++ src/examples/wtfpl-2.txt | 14 ++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/examples/hue_rotation/hue_rotation.ino create mode 100644 src/examples/wtfpl-2.txt (limited to 'src/examples') 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 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); + } +} diff --git a/src/examples/wtfpl-2.txt b/src/examples/wtfpl-2.txt new file mode 100644 index 0000000..ee7d6a5 --- /dev/null +++ b/src/examples/wtfpl-2.txt @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + -- cgit v1.2.3