Skip to content

Commit

Permalink
Tweak to solenoid shield firmware.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Barch committed Sep 3, 2012
1 parent 4538441 commit d796a2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RelayDriver/RelayDriver.ino
Expand Up @@ -101,12 +101,12 @@ void processSerial() {
}

void update() {
for(int i=0; i < 10; i++) {
for(int i=0; i < 8; i++) {
// write pneumatic digitals
if ((int)serialData[i+2] == 0xFF)
digitalWrite((i+2), HIGH);
digitalWrite((9-i), HIGH);
else
digitalWrite((i+2), LOW);
digitalWrite((9-i), LOW);
}
}

Expand Down

0 comments on commit d796a2a

Please sign in to comment.