diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:17:42 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:17:42 +0100 |
commit | 7dd67a49d58d01cb777615aa10f642280b93e0e5 (patch) | |
tree | 9e6d3640d1da97e8e51a3422424008c5945e7621 | |
parent | 9a836f1dbf90f07c2fc4151166f7456879d675b0 (diff) |
Fixing the LED display on the demo.
-rw-r--r-- | demo.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |