The Wiring 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: hbarragan [at] uniandes.edu.co
Name
attached()
Examples
#include <Encoder.h>
Encoder myEncoder;
void setup() {
myEncoder.attach(2, 8) // attaches an encoder to pins 2 and 8
}
void loop() {
if(myEncoder.attached()) {
myEncoder.write(90); // position the encoder position to 90
myEncoder.detach();
}
}