The second example same result as above
And the third is going good
Made some changes in the last program, these lines I commented out:
// if (digitalRead(encoderBtn) == LOW) Serial.println("Button Pressed");
// else Serial.println("Button Released");
and added a carriage return println() here
Serial.print(" | ");
Very nice to have a few of these components in Simulide, tnx.
What is causing the difference in behaviour I don't know. These examples are on the top of the list if you do a search for Uno KY-040 but the results are quite different. I posted it here because I don't really need help with it and since it is working in example no.3 it's probably not correct to call it a bug.