Skip to the content.

count turns program

This program requires a Jacdac dial (rotary encoder) module. The dial tile raises two events: turn left and turn right.

The program counts the number of times the dial was turned left (in the variable X) and the number of times the dial was turned right (in the variable Y), displaying the count for each turn.