Thursday, October 28, 2010

ClockTWO Simulator

The ClockTWO boards should be completed in Mumbai today. Then it will take another couple of weeks to get a few sent here. In the meantime I've started working on the code.

This Python simulation with py2exe executable (to use: unzip, double-click dist/ClockTWO.exe) implements the same data structure that ClockTWO uses, so I can see if I am getting all the bits manipulated as I expect.

Controls to set the time:
s -- forward one second
S -- backward one second
m -- forward one minute
M -- backward one minute
f -- forward five minutes
F -- backward five minutes
h -- forward one hour
H -- backward one hour

The I, M, and D buttons emulate the hardware buttons. I moves forward one minute, D move back one minute, and M changes the color.

Please download, test, and provide feedback.


g0guletu said...

I know that this is old, but I downloaded the is great, I like it! I have a question, if I may ask...Is there any way to change the font to one that I want to use? I plan to make a word clock myself, and a simulator like this would be great! I cant decide what font to use, so, to be able to change font in this program would help me decide. thank you!

Justin said...

I'm glad you like it! There should be a font variable in the code. Try playing with that.