<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Wiilight help?</title>
<description> Ok i might new to the Wii programming but i think i have this right... //light crap
void WIILIGHT_Init();
void WIILIGHT_TurnOn();
int WIILIGHT_GetLevel();
int WIILIGHT_SetLevel(int level);

void WIILIGHT_Toggle();
void WIILIGHT_TurnOff();
//end light crap
WIILIGHT_Init();

WIILIGHT_SetLevel(255);
WIILIGHT_TurnOn();
sleep(3);
WIILIGHT_TurnOff();
my errors are that the WIILIGHT_TurnOn is undefined... (i miss PHP so much easier) im just trying to get started any advice?</description><link>http://forum.wiibrew.org/read.php?11,8578,8578#msg-8578</link><lastBuildDate>Fri, 12 Jun 2026 03:49:21 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23183#msg-23183</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23183#msg-23183</link><description><![CDATA[ Nice XD why didn&#039;t I think of that? Ok, I will look into that. thanks!<br /><br />Are there any simple libraries or adresses the directly tie to the 4 leds on the bottom of the 4 wiimotes? If not, then I can live.]]></description>
<dc:creator>CloneDeath</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 15:47:45 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23182#msg-23182</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23182#msg-23182</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>CloneDeath</strong><br />Out of curiousity, is there a way like crayons "*_wiilight_reg" way to choose how bright it is? For bosses, me and my room mate thought it would be fun to sync the boss&#039;s HP with the light on the wii. If not, then I will have to look into whatever this dude is using~</div></blockquote>The way it&#039;s achieve in Libwiilight is by turn the light on and off with a different interval. So it looks like the light change intensity.]]></description>
<dc:creator>Crayon</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 15:44:25 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23177#msg-23177</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23177#msg-23177</link><description><![CDATA[ Out of curiousity, is there a way like crayons "*_wiilight_reg" way to choose how bright it is? For bosses, me and my room mate thought it would be fun to sync the boss&#039;s HP with the light on the wii. If not, then I will have to look into whatever this dude is using~]]></description>
<dc:creator>CloneDeath</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 15:08:40 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23175#msg-23175</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23175#msg-23175</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>giantpune</strong><br />Ok. I&#039;m having a very similar issue to this. I am not new to programming but I am getting this noob error. Maybe somebody can tell me what I forgot to do.<br /><br />I am trying to use the wiilight library from wiibrew.<br />I have put the .h and .a files in the right folders in devkit.<br />I said #include <Wiilight.h> at the top of main.c.<br />I put this line in the main function after the video_init()...<br />WIILIGHT_Init();<br /><br />I get this stupid error when I compile...<br />j:/code/poopie/source/main.cpp:124: undefined reference to `WIILIGHT_Init()&#039;<br /><br />Did I miss something obvious anybody? Was I supposed to put it in the makefile also?</div></blockquote>You need to add it in your Makefile after this instruction:<br /><pre class="bbcode">
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS	:=
</pre>]]></description>
<dc:creator>Crayon</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 15:03:29 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23132#msg-23132</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23132#msg-23132</link><description><![CDATA[ I am already using this code. I was wanting to use the library because it allows setting the intensity so it allows fading and what not.]]></description>
<dc:creator>giantpune</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 04:58:52 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23098#msg-23098</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23098#msg-23098</link><description><![CDATA[ If you want to turn the light on and off. Just use this code:<br /><pre class="bbcode">
static vu32 *_wiilight_reg = (u32*)0xCD0000C0;

/**
 * Turn Wii light off
 */
void WIILIGHT_TurnOff()
{
    *_wiilight_reg &= ~0x20;
}

/**
 * Turn Wii light on
 */
void WIILIGHT_TurnOn()
{
    *_wiilight_reg |= 0x20;
}
</pre>]]></description>
<dc:creator>Crayon</dc:creator>
<category>Coding</category><pubDate>Wed, 01 Jul 2009 00:07:14 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,23080#msg-23080</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,23080#msg-23080</link><description><![CDATA[ Ok. I&#039;m having a very similar issue to this. I am not new to programming but I am getting this noob error. Maybe somebody can tell me what I forgot to do.<br /><br />I am trying to use the wiilight library from wiibrew.<br />I have put the .h and .a files in the right folders in devkit.<br />I said #include <Wiilight.h> at the top of main.c.<br />I put this line in the main function after the video_init()...<br />WIILIGHT_Init();<br /><br />I get this stupid error when I compile...<br />j:/code/poopie/source/main.cpp:124: undefined reference to `WIILIGHT_Init()&#039;<br /><br />Did I miss something obvious anybody? Was I supposed to put it in the makefile also?]]></description>
<dc:creator>giantpune</dc:creator>
<category>Coding</category><pubDate>Tue, 30 Jun 2009 23:29:42 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,8594#msg-8594</guid>
<title>Re: Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,8594#msg-8594</link><description><![CDATA[ Sounds like you don&#039;t have the needed functions in any of the linked with libraries. Are you sure that these ones does in fact exist in those? Check if you need a fresher version or maybe even yet another library.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Fri, 23 Jan 2009 08:22:02 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,8578,8578#msg-8578</guid>
<title>Wiilight help?</title><link>http://forum.wiibrew.org/read.php?11,8578,8578#msg-8578</link><description><![CDATA[ Ok i might new to the Wii programming but i think i have this right... <pre class="bbcode">//light crap
void WIILIGHT_Init();
void WIILIGHT_TurnOn();
int WIILIGHT_GetLevel();
int WIILIGHT_SetLevel(int level);
 
void WIILIGHT_Toggle();
void WIILIGHT_TurnOff();
//end light crap
WIILIGHT_Init();</pre>
<pre class="bbcode">
WIILIGHT_SetLevel(255);
WIILIGHT_TurnOn();
sleep(3);
WIILIGHT_TurnOff();</pre>
my errors are that the WIILIGHT_TurnOn is undefined... (i miss PHP so much easier) im just trying to get started any advice?]]></description>
<dc:creator>gamerjr</dc:creator>
<category>Coding</category><pubDate>Fri, 23 Jan 2009 04:34:55 +0100</pubDate></item>
</channel>
</rss>