Talk:Libwiilight

From WiiBrew
Jump to navigation Jump to search

Source

Is the source available somewhere? --DrTwox 22:31, 7 November 2009 (UTC)

If you simply need on and off, here it is:
/**
 * Turn Wii light off.
 */
void WIILIGHT_TurnOff()
{
    *(u32*)0xCD0000C0 &= ~0x20;
}

/**
 * Turn Wii light on.
 */
void WIILIGHT_TurnOn()
{
    *(u32*)0xCD0000C0 |= 0x20;
}

--Crayon (talk) 23:29, 7 November 2009 (UTC)

Thanks Crayon; How about setting the level of the LED? --DrTwox 20:56, 8 November 2009 (UTC)