The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

Firmware mods: new display modes

by DigiSage on Mon Oct 12, 2009 12:50 pm

Over the weekend I added a new menu option called "set scnd", short for "set seconds display". It has three choices: "yes", "no" and "fast".

If you pick "yes", the Ice Tube Clock looks exactly the same.

If you pick "no", seconds are not displayed and a blinking dot is added between hours and minutes. If region is set to US, any leading 0 from hour is removed, and an A or P is added at the end of the clock to denote AM or PM.

If you pick "fast", then every display segment is used like this: HH.MM.SSxx where xx are hundredths of a second, so they scroll by really fast and look pretty nifty. See below video:

http://www.youtube.com/watch?v=Ce5uGABRwCk

I'll post the modified firmware in a little while, it's on my laptop which is at home and asleep, wife is going to wake it up for me when she gets back :)

Please pardon the horrible video quality and background setting/lighting :)
User avatar
DigiSage
 
Posts: 20
Joined: Tue Sep 29, 2009 5:11 pm
Location: San Diego, CA

Re: Firmware mods: new display modes

by DigiSage on Mon Oct 12, 2009 2:46 pm

Here's a zip of the modified firmware & source code.

firmware09-30-09-digisage.zip
Ice Tube Clock firmware modified
(217.19 KiB) Downloaded 311 times
User avatar
DigiSage
 
Posts: 20
Joined: Tue Sep 29, 2009 5:11 pm
Location: San Diego, CA

Re: Firmware mods: new display modes

by adafruit on Mon Oct 12, 2009 4:58 pm

wow! you are on a roll. That sounds cool :) I'm psyched that people are able to hack the firmware. I tried to comment it well. That is to say "well, I tried to comment it" ;)
User avatar
adafruit
 
Posts: 11636
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Firmware mods: new display modes

by DigiSage on Mon Oct 12, 2009 10:13 pm

I'm so glad you like it ladyada! You did comment it well, it would have been much harder without the comments. I see a lot of opportunities for refactoring, but it would be a pretty large project. What you wrote suits the kit perfectly: practical & not over-abstracted. I have a few more ideas to implement and will post more soon!
User avatar
DigiSage
 
Posts: 20
Joined: Tue Sep 29, 2009 5:11 pm
Location: San Diego, CA

Re: Firmware mods: new display modes

by tech8 on Wed Oct 14, 2009 5:42 pm

Very cool. :D
tech8
 
Posts: 2
Joined: Tue Sep 08, 2009 8:58 pm