Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created April 2, 2017 20:35
Show Gist options
  • Save hitherejoe/753f472fa6ce19e2b78d18006000156d to your computer and use it in GitHub Desktop.
Save hitherejoe/753f472fa6ce19e2b78d18006000156d to your computer and use it in GitHub Desktop.
for (int i = 0; i < solenoids.size(); i++) {
try {
solenoids.get(i).setValue((int) sequence.charAt(i) == 1);
} catch (IOException error) {
Timber.e(error, "There was an error configuring GPIO pins");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment