pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
pyBCD

pyBCD - 1.1

Chris Uzal (c4)

Tags:

Description

Why would you want to use a binary clock?

Because if you use Arabic numerals... then the terrorists have already won. :p

Download this binary clock today and support freedom loving peoples everywhere.

Seriously...

The "binary clock" is a great exercise in programming. When you're already familiar with programming theory, you need something slightly bigger than "hello world."

This is my first published python project. You can import this file to use the get_correct_digit function in your own work. I've licensed it as GPL 3 so I look forward to seeing interesting additions to it (if that ever happens.)

Changes

Small changes.

Primarily, the links from previous versions are dead.

The one below are living.

Celebrate life.

As usual, you can resize your window, re color your clock red, green or blue (space bar) and choose a 12 or 24 hour format.

You read the clock from left to right as you do with terrorist numerals. Tens place, ones place for the hours. Tens place, ones place for the minutes. For each column, you add up from the bottom. The rows are valued one, two, four and eight.

11:35 PM would have the first two columns lit on the first row only. The third column would have the first and second row lit. The fourth column would have the first and third (one plus four) lit.

This will work on any operating system to the best to my knowledge. Just add python and pygame.

Links

Home Page: http://chrisuzal.com/
Source: http://chrisuzal.com/py_code/pyBCD/pyBCD.7z
Windows: http://chrisuzal.com/py_code/pyBCD/pyBCDwinexe.zip

Screenshot


click to view original size

Releases

pyBCD - 1.1 - Apr 26, 2012
pyBCD - 1.0 Final - Jul 1, 2008
pyBCD - 0.42 - Jun 30, 2008
pyBCD - 0.27 - Jun 26, 2008
pyBCD - 0.2 - Jun 24, 2008

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

July 1, 2008 9:47am - Chris Uzal - nickname: (c4)
@PyMike: thanks for checking it out. You kept me in python with your PySetup v1.1 code. Props to you are under Release 0.2.

@Paul: Thanks for the rating. As to binary representation of Unix time, I accept your challenge. I'm going to assume that "proper binary"(as oppose to *B*inary *C*oded *D*ecimal :p) means zeros and ones.

I can write it... I can confirm that it's displaying the right sequence... but I doubt I'll ever be able to read it with the speed of BCD or Arabic digits. Even if I could convert it in my head to the decimal seconds, then there's converting it to a human usable format.

It will be fun. :)
June 30, 2008 11:42pm - Paul Davey - nickname: (technomancer) - 5/5
next
make one that displays unix time in proper binary :P
June 30, 2008 2:02pm - pymike - nickname: (pymike)
Neato :)
June 26, 2008 10:52am - Chris Uzal - nickname: (c4)
Thank you. I'd like to replace my windows clock with a smaller (much smaller) version of my binary clock.
June 24, 2008 4:12pm - Emanuel Berg - nickname: (metabaron)
Interesting
June 24, 2008 3:41pm - Michael - nickname: (cookie) - 4/5
Nice toy! Should add nicely to futuristic games ...
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)