joa / wiiflash

Automatically exported from code.google.com/p/wiiflash
0 stars 0 forks source link

LED1-4 light up wrong LEDs #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setting the Wiimote's leds to LED1, LED2, LED3, or LED4
2. example. wii1.leds = Wiimote.LED1
3.

What is the expected output? What do you see instead?
It is expected that LED1 would correspond with the first LED, LED2 with the
2nd, LED3 with the 3rd, and LED4 with the 4th.  The documentation states
that LED1-4 corresponds to int 1-4.
However, the LEDs on the Wiimote go in binary order:
1 0 0 0 = 1
0 1 0 0 = 2
1 1 0 0 = 3
0 0 1 0 = 4, etc
So setting the Wiimote to LED4 would be the same to setting it as int 4,
which would light up the 3rd LED, not the 4th. However, when I do
wii.leds = 8
it sets the 4th LED, because 0 0 0 1 = 8.
LED1 and LED2 should remain the same, but LED3 should = 4 and LED4 should =
8 to light up the correct LED on the Wiimote.

What version of the product are you using? On what operating system?
0.4.1, Windows XP Professional SP2 running on VMWare on Vista Ultimate

Please provide any additional information below.

Original issue reported on code.google.com by HerChloe...@gmail.com on 16 Jul 2008 at 5:55

GoogleCodeExporter commented 9 years ago
Hi HerChloeness,

This bug has been fixed in the latest release.
Make sure you have it :)

let me know,

best,

Thibault

Original comment by thibault.imbert on 7 Aug 2008 at 11:03