Skip to content

Commit ca0b2a8

Browse files
committed
Endret LED-rekkefølge
1 parent c5b68b0 commit ca0b2a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

slider.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -309,21 +309,21 @@ <h3>Logg</h3>
309309

310310

311311
if(sliderVal > 20)
312-
setBit(1, 3, 1); // 0001
312+
setBit(1, 0, 1); // 0001
313313
else
314-
setBit(1, 3, 0);
314+
setBit(1, 0, 0);
315315
if(sliderVal > 40)
316-
setBit(1, 2, 1); // 0010
316+
setBit(1, 1, 1); // 0010
317317
else
318-
setBit(1, 2, 0);
318+
setBit(1, 1, 0);
319319
if(sliderVal > 60)
320-
setBit(1, 1, 1); // 0100
320+
setBit(1, 2, 1); // 0100
321321
else
322-
setBit(1, 1, 0);
322+
setBit(1, 2, 0);
323323
if(sliderVal > 80)
324-
setBit(1, 0, 1); // 1000
324+
setBit(1, 3, 1); // 1000
325325
else
326-
setBit(1, 0, 0)
326+
setBit(1, 3, 0)
327327

328328
console.log(charVal);
329329

0 commit comments

Comments
 (0)