Difference between revisions of "Libwiilight"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | {{ambox}} | + | {{ambox |
− | + | | type = notice | |
+ | | text = '''Unless otherwise noted, the author of this {{{1|homebrew application}}} takes no responsibility for any damage you may cause to your hardware.''' | ||
+ | }} | ||
This is a quick simple library created by me using the wiilight demo app by Bool. | This is a quick simple library created by me using the wiilight demo app by Bool. | ||
It is designed to be quick, small and simple to use with relatively few commands. | It is designed to be quick, small and simple to use with relatively few commands. |
Revision as of 11:53, 29 August 2008
Unless otherwise noted, the author of this homebrew application takes no responsibility for any damage you may cause to your hardware. |
This is a quick simple library created by me using the wiilight demo app by Bool. It is designed to be quick, small and simple to use with relatively few commands.
Download
Beta 1 - File:Libwiilight.zip
Documentation
Installation
Copy the .a file to DEVKITPRO path/libogc/lib/wii and the .h to DEVKITPRO path/libogc/include
Functions
void WIILIGHT_Init();
void WIILIGHT_TurnOn();
int WIILIGHT_GetLevel();
int WIILIGHT_SetLevel(int level);
void WIILIGHT_Toggle();
void WIILIGHT_TurnOff();
WIILIGHT_Init(); - initializes the lib, should be called after the video init stuff WIILIGHT_TurnOn(); - turns on the light once the level has been set WIILIGHT_GetLevel(); - returns the current light level WIILIGHT_SetLevel(); - sets the light level (0 - 255) WIILIGHT-Toggle(); - toggles between on/off WIILIGHT_TurnOff(); - turns off the light
Demos / Examples
//Defines/includes
#include <wiilight.h>
//Inits
WIILIGHT_Init();
//Main App
WIILIGHT_SetLevel(255);
WIILIGHT_TurnOn();
sleep(3);
WIILIGHT_TurnOff();