I can do the simple function test on Arduino IDE, and all the components are working:
#include <Encoder.h>
Encoder myEnc(3, 2);
void setup() {
Serial.begin(9600);
Serial.println("Basic Encoder Test:");
}
long oldPosition = -999;
void loop() {
long newPosition = myEnc.read();
if (newPosition != oldPosition) {
oldPosition = newPosition;
Serial.println(newPosition);
}
}
When I try the Embrio sample from the video, I can't see any changes in the node like the video.
Even tried different pins settings, older versions, and including the encoder library with no change.
The program has a good connection, because I can run another program which has a I2C LCD node, that work perfect.
Edited by user Sunday, March 05, 2017 12:59:37 PM(UTC)
| Reason: Not specified