[WiiFlash] WiiFlash Server Console Version Problems

Erik Lembke erik.lembke at gmail.com
Mon Mar 31 10:43:07 PST 2008


Hi Zac,

as you can see here
http://code.google.com/p/wiiflash/source/browse/trunk/as3/src/org/wiiflash/W
iimote.as (Line 330-350) the LEDs are setup like identifiers.

LED1 = 1
LED2 = 2
LED2 = 3
LED3 = 4

If you'd like to address them via code you have to adapt the "binary style".

LED1 = 1
LED2 = 2
LED3 = 4
LED4 = 8

Just setup your own constants and add or substract them binary. I also ran
into this problem first time and maybe the source will be changed by the Joa
or Thinault to make it more practical. They got a lot of work to do so try
the custom solution.

Hope this help!

Regards,
Erik

unic8 Studios
http://www.unic8.com


-----Ursprüngliche Nachricht-----
Von: wiiflash-bounces at osflash.org [mailto:wiiflash-bounces at osflash.org] Im
Auftrag von zshe803 at cse.unsw.EDU.AU
Gesendet: Montag, 31. März 2008 08:22
An: wiiflash at osflash.org
Betreff: [WiiFlash] WiiFlash Server Console Version Problems

Hi,

I have been using the WiiFlash Server Console Version and have run into
some problems when trying to use the LEDs.

Wiimote.LED1 - Turns LED1 On
Wiimote.LED2 - Turns LED2 On
Wiimote.LED3 - Turns LED1 & LED2 On
Wiimote.LED4 - Turns LED3 On

I am unable to turn just LED 4 On.

Sample Code:
var currLED:Number = 1;

function processLED():void
{
	txtLED.text = String(currLED);
	switch(currLED){
		case 1:
			myWiimote.leds = Wiimote.LED1;
			break;
		case 2:
			myWiimote.leds = Wiimote.LED2;
			break;
		case 3:
			myWiimote.leds = Wiimote.LED3;
			break;
		case 4:
			myWiimote.leds = Wiimote.LED4;
			break;
	}
}

Is it something I am doing wrong or is it a problem with the server app?

Also is the console server source code available anywhere?

Regards,
Zac Shenker


_______________________________________________
WiiFlash mailing list
WiiFlash at osflash.org
http://osflash.org/mailman/listinfo/wiiflash_osflash.org




More information about the WiiFlash mailing list