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)
Setting the level is allot more involved as it is not supported directly. libwiilight uses very fast pulses (toggling on and off) to simulate levels of intensity, its just an eye trick. I have a (slightly) modified version of libwiilight here --Rhys 00:57, 9 November 2009 (UTC)
Thank you! Works great --DrTwox 20:54, 9 November 2009 (UTC)