Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/SetSolenoid.java Secret
Created Apr 2, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.