Views: 10,158

Wii BCD Clock

All > Tech > Hacks/Mods > Computers > Wii BCD Clock by tsmaster
I was mucking about with cWiiRemote (version 0.2, but it looks like the project is now maintained here), putting a SWIG wrapper around the library, so I could do Python prototyping of games using the Wii controllers.

It turns out, as a programmer, you can turn the 4 blue LEDs on and off at will, so you don't have to display power levels or controller number, you could do other things, as well.

Like a clock: the Python script acquires connections to the four controllers, finds the time (in this case, a 24-hour representation, so, 14:47), converts each digit to binary (which seems a little weird, but it's called 'Binary Coded Decimal', and it's quasi-useful and easier for humans to read than a full-on binary representation of the time), and sends the binary representation of the digits out to the controllers.

So:
1 -> ---*
4 -> -*--
4 -> -*--
7 -> -***


I tried some other things, including sweeping a light back and forth Knight Rider / Cylon style, but that doesn't make as interesting of a picture.

More creations by tsmaster

More creations in Computers


Comments:
Log in or register to post comments.
You are not logged in.
Log inRegister now!