Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active August 29, 2015 14:11
Show Gist options
  • Save madhephaestus/9ad4e126eb5b3e3c43df to your computer and use it in GitHub Desktop.
Save madhephaestus/9ad4e126eb5b3e3c43df to your computer and use it in GitHub Desktop.
//Instantiate a new counter input
CounterInputChannel enc=new CounterInputChannel(dyio.getChannel(23));
//To reset the value of the encoder, simply set the channel value
enc.setValue(0);
while(!Thread.interrupted()){
System.out.println(enc.getValue());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment