This library allows to read a value from an analog input like an potentiometer, or from a digital input like an encoder. Moreover, allows to write it on digital output, exactly on PWM pin. You can specify the device, and the resolution of reading and writing. If you want, there is a controller class that manages an object AnalogIn and/or an object AnalogOut, without worrying about the normalization if the resolutions of the objects are different.
To install manually this library, you can see this little guides.
- Download and extract it
- Open Arudino IDE
- Select tab
Sketch->Include Library->Add .ZIP Library - Select the zip file included in
extrasYou can select the library onInclude Library->AnalogIO. It will be automatically added on you project, like this:
#include <AnalogIO.h>- Download and extract it
- Copy the
srccontent in your project folder - Open the project with your IDE
- Use the preprocessor directives to add the library, like this:
#include "AnalogIO.h"See the Wiki page for details about the use.
See the Changelog page for details about the versions.
Your contribute is important for me. Don't hesitate with issues and pull requests for improving this class.
Special thanks to my cousin Marco Palladino for the help to optimize the code.