This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed problem with "click" LED lighting up whenever the "up" LED ligh…

…ts up.

It appears there should only be one of the inputs set to HIGH for each
display LED. With two set to HIGH, it caused another led to be lit at
low power.
  • Loading branch information...
marcuserronius committed Aug 28, 2012
1 parent e7e167d commit 5235daa33a6cc3c3b9932ccdbf27a9c2606b0de3
Showing with 2 additions and 2 deletions.
  1. +2 −2 firmware/Arduino/makey_makey/makey_makey.ino
@@ -531,7 +531,7 @@ void cycleLEDs() {
if ((ledCycleCounter == 0) && inputs[0].pressed) {
pinMode(inputLED_a, INPUT);
- digitalWrite(inputLED_a, HIGH);
+ digitalWrite(inputLED_a, LOW);
pinMode(inputLED_b, OUTPUT);
digitalWrite(inputLED_b, HIGH);
pinMode(inputLED_c, OUTPUT);
@@ -594,7 +594,7 @@ void danceLeds()
{
// UP
pinMode(inputLED_a, INPUT);
- digitalWrite(inputLED_a, HIGH);
+ digitalWrite(inputLED_a, LOW);
pinMode(inputLED_b, OUTPUT);
digitalWrite(inputLED_b, HIGH);
pinMode(inputLED_c, OUTPUT);

0 comments on commit 5235daa

Please sign in to comment.