Wiilight help? January 23, 2009 04:34AM | Registered: 15 years ago Posts: 1 |
//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?
Re: Wiilight help? January 23, 2009 08:22AM | Registered: 15 years ago Posts: 265 |
Re: Wiilight help? June 30, 2009 11:29PM | Registered: 14 years ago Posts: 234 |
Re: Wiilight help? July 01, 2009 12:07AM | Registered: 15 years ago Posts: 175 |
Re: Wiilight help? July 01, 2009 04:58AM | Registered: 14 years ago Posts: 234 |
Re: Wiilight help? July 01, 2009 03:03PM | Registered: 15 years ago Posts: 175 |
You need to add it in your Makefile after this instruction:Quote
giantpune
Ok. I'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.
I am trying to use the wiilight library from wiibrew.
I have put the .h and .a files in the right folders in devkit.
I said #includeat the top of main.c.
I put this line in the main function after the video_init()...
WIILIGHT_Init();
I get this stupid error when I compile...
j:/code/poopie/source/main.cpp:124: undefined reference to `WIILIGHT_Init()'
Did I miss something obvious anybody? Was I supposed to put it in the makefile also?
#--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project #--------------------------------------------------------------------------------- LIBS :=
Re: Wiilight help? July 01, 2009 03:08PM | Registered: 14 years ago Posts: 42 |
Re: Wiilight help? July 01, 2009 03:44PM | Registered: 15 years ago Posts: 175 |
The way it's achieve in Libwiilight is by turn the light on and off with a different interval. So it looks like the light change intensity.Quote
CloneDeath
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's HP with the light on the wii. If not, then I will have to look into whatever this dude is using~
Re: Wiilight help? July 01, 2009 03:47PM | Registered: 14 years ago Posts: 42 |