Controlling the blue light of my wii : )
Story/Background/The Journey/Etc... don't read if you don't want to
This post wasn't supposed to be my next/first post, but, well... I did this demo and I needed to document it, and after all, this blog is for that.. so, here it is..
For those who know me and have seen my 101ways demonstration (different ways to turn on my room's light) should know I really liked that idea of controlling my room's light with music!...
...and having a wii with a TP hack installed and running homebrew (home made apps) I realized I needed to do something... and.. well then I remembered that my wii had a light and wasn't being used for anything except while inserting a disc or turning On the console...
I looked at the internets for about a week or two without finding anything about how to control that light. The lack of documentation and examples was big challenge so I went to #wiidev channel to ask if anyone knew how to control it... well my original idea was to ask, learn, thank and leave... but then I realized I knew so little about graphics and hardware, and I liked learning some new things... well I forgot about controlling the light... and well.. I just started reading code, testing others' games and self learning until I finally got it : )
Here was what I needed, but... I was even more noob than now and so I was unable to understand what I needed to do.
Well my understanding of homebrew development is really short, but it is a lot more than a week ago, and with some help of a friend I can even control light intensity! : )
The First Test (Light On and Off)

Video on Youtube
Well here is my first test.. .
This was my first successful attempt on controlling the light, and as you can see is not impressive or anything... it is just a proof of concept : )
The Second Test (Fading effect!)

Video on Youtube
Well this is also another proof of concept.... with my first attempt I could only turn the light on or off but not control intensity... how could that be possible?? I have seen fading effect from nintendo when I get a new message in my wii, how could be possible they could but I didn't!? .. well I was talking about that with a friend and he told maybe they use PWM... well I didn't know what was that but he and wikipedia helped me understand it : ), I didn't based my code in wikipedia or anything but I used the concept to make that cool fading effect.
How it works
Well it is very simple, it just turns the light on for X times, then turns it off Y times, if X is bigger than Y, then it is brighter, if Y is bigger than X, it is darker :). By the way my X and Y are measured in nanoseconds :D
Source, binaries, or anything interesting?
Sorry, my code is very very simple and really not useful, at this moment my code is only proof of concept but I'm still planning to make that light-music-controlled program, when it is finished I will make a binary release, and maybe a source release too : )
Remember: feel free to correct my English! is the only way I can learn..

Comments(1)
Remember to opensource all your works =P
Add a comment