Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurutobi committed Aug 24, 2013
2 parents 8c1aab9 + c54880c commit 5372aad
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum LINE {
lineF,
lineG,
lineH
} line;
};

int statusLED = 10;
int testLED = 13;
Expand Down Expand Up @@ -82,13 +82,13 @@ void loop()
void dWrite()
{
//we want to stop when we've started over the 3rd time
line = LINE.lineA;
enum LINE line = lineA;
int frequency = HIGH;
for(int counter = 0; counter < 2; line++)
for(int counter = 0; counter < 2; line = static_cast<LINE>(static_cast<int>(line) + 1))
{
digitalWrite(testLED, frequency); //do the first test
digitalWrite(line, frequency); //write to the specific line and freq
if (line == LINE.lineH) //if we're at the end do something different
if (line == lineH) //if we're at the end do something different
{
/*** Depending on HIGH or LOW we will do freq# or 1000 - freq# ***/
if (inputTemp <= lowthreshold)
Expand Down Expand Up @@ -139,7 +139,7 @@ void dWrite()
}

counter++; //change the next set of writes
line = lineA;
}
line++; //change to next line
}
}

0 comments on commit 5372aad

Please sign in to comment.