summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {