LibInteract for AVR
A library that is compatible with Arduino and old plain C for AVR.
The Tween Class for Arduino and AVR
NEW ! The Tween class : for light (PWM) ramps : download Tween_01.zip for Arduino and AVR (runs on UNIX too)
Allows ramps generation such as the "line" or "line~" objects in PureData and Max/MSP.
The Tween Class for AVR and Arduino Part of LibInteract for AVR Alexandre Quessy 2008 ~ BSD License (libre software) http://wiki.dataflow.ws/LibInteract This is a first working draft of a C class for motion tweening. It can be used to create chases with lights, or fades for audio. It works on Arduino. Just drop the whole "Tween" directory in your "<arduino directory>/hardware/librairies/" directory. The code is pure C, so you can rename *.cpp to *.c and use with a tiny AVR. Doesn't use malloc nor free. This is a C class. It uses a C struct for storing the attributes. All function calls need a pointer to a variable of type Tween_t as a first argument. (such as &theVariable) Look for tutorials on pointers. The crucial maths are taken from the excellent easing equations from Robert Penner. Under a BSD-like License: Easing Equations v1.5 (c) 2003 Robert Penner, all rights reserved. May 1, 2003 This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html.
AvrMadeSimple : simple make file for AVR
- c classes : an example on how to implement C classes, compared to a C++ implementation.
See the SVN repository : http://code.google.com/p/libinteract/
You can browse it : http://code.google.com/p/libinteract/source/browse/trunk/trunk/
Please post on [Electronix] or to AlexandreQuessy for questions or suggestions.