summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:17:42 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:17:42 +0100
commit7dd67a49d58d01cb777615aa10f642280b93e0e5 (patch)
tree9e6d3640d1da97e8e51a3422424008c5945e7621
parent9a836f1dbf90f07c2fc4151166f7456879d675b0 (diff)
Fixing the LED display on the demo.
-rw-r--r--demo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demo.c b/demo.c
index 5fe57cb..c9eb8eb 100644
--- a/demo.c
+++ b/demo.c
@@ -17,10 +17,10 @@ void litLED(int led, int value) {
return;
switch (led) {
- case 1: led = LED1_wire; break;
- case 2: led = LED2_wire; break;
- case 3: led = LED3_wire; break;
- case 4: led = LED4_wire; break;
+ case 1: led = 1 << LED1_wire; break;
+ case 2: led = 1 << LED2_wire; break;
+ case 3: led = 1 << LED3_wire; break;
+ case 4: led = 1 << LED4_wire; break;
}
if (value) {