What about an option to turn on the Wii's Blue LED permanently? That would be cool. Then our Wiis would look like they did back when they were introduced at E3!
It shouldn't be too hard to program...
http://blog.emiliobool.com/posts/wiilight_code/
QUOTE#include
#include
#include
#include
struct timespec _wiilight_timeOn;
struct timespec _wiilight_timeOff;
int WIILIGHT_IsOn;
int WIILIGHT_Level;
void _wiilight_turn(int enable);
static void * _wiilight_loop(void *arg);
static vu32 *_wiilight_reg = (u32*)0xCD0000C0;
lwp_t _wiilight_thread;
void WIILIGHT_Init();
void WIILIGHT_TurnOn();
int WIILIGHT_GetLevel();
int WIILIGHT_SetLevel(int level);
void WIILIGHT_Toggle();
void WIILIGHT_TurnOff();
static void *xfb = NULL;
static GXRModeObj *rmode = NULL;
void WIILIGHT_Init(){
_wiilight_timeOn.tv_sec=(time_t)0;
_wiilight_timeOff.tv_sec=(time_t)0;
WIILIGHT_IsOn=0;
WIILIGHT_SetLevel(0);
}
int WIILIGHT_GetLevel(){
return WIILIGHT_Level;
}
//
// here is where we set the light intensity
// it turns on the light and
// waits level*40000 nanoseconds
// (so, if it is 255 it will wait for 10200000 nanoseconds)
// (that means ~ 1/100secs)
//
// for the time turned off it is 10200000-level_on
// (so, if level is 255, it will wait for 0 seconds)
// (that means full light intensity)
//
int WIILIGHT_SetLevel(int level){//0 to 255
long level_on;
long level_off;
if(level>255) level=255;
if(level0) _wiilight_turn(0);
nanosleep(&timeOff);
}
return NULL;
}
int main(int argc, char **argv) {
VIDEO_Init();
WPAD_Init();
rmode = VIDEO_GetPreferredMode(NULL);
xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
console_init(xfb,20,20,rmode->fbWidth,rmode->xfbHeight,rmode->fbWidth*VI_DISPLAY_PIX_SZ);
VIDEO_Configure(rmode);
VIDEO_SetNextFramebuffer(xfb);
VIDEO_SetBlack(FALSE);
VIDEO_Flush();
VIDEO_WaitVSync();
if(rmode->viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
printf("Invisible Line... can't be seen on my tv! O: n");
printf("Starting fading effect
...n");
//
// we set the initial values about timing
//
WIILIGHT_Init();
//
// with this we start the loop
//
WIILIGHT_TurnOn();
int i=0;
int dir=2;
while(1) {
if(i>255){
i=255;
dir=-2;
}
if(i