FS#2134 - Major Clock Update

Attached to Project: Rockbox
Opened by Zakk Roberts (midkay) - Friday, 09 April 2004, 23:59 GMT
Last edited by Hardeep Sidhu (hardeeps) - Wednesday, 30 June 2004, 02:42 GMT
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



Here's a major clock update (2.0)


Version 2.0 update release notes:

This is a major update to the clock plugin. It fixes a
few bugs, and totally revamps the code (lots of things
sorted into functions, etc).

New Features:
-New mode, Fullscreen!
-Seperate settings for each mode
-Credits at F2 (fly in, fly out)
-Options at F3
-Startup / Shutdown logo (choose one by hitting ON)
-TOTALLY cleaner code

Analog specific changes:
-removed outer border option
-added 12/24h readout (and am/pm bitmaps for 12h mode)

Digital specific changes:
-now centers date and second readouts
-second readout options, "Digital" (text), "Bar"
(progressbar), "Inverse" (inverts the display as the
seconds go by
-12/24h modes as well here (and of course the am/pm

ALSO: The settings file is now
"/.rockbox/.clock_settings" whereas it WAS
"/.rockbox/rocks/.clock_settings". Don't bother copying
it back because it is obsolete, you'll just have to
make a new one.

   clock.c (57.3 KiB)
   clock.c (54.8 KiB)
   clock.c (55.9 KiB)
   clock.c (55.3 KiB)
   clock.c (55.8 KiB)
   clock.c (84.9 KiB) (18.5 KiB)
This task depends upon

Closed by  Hardeep Sidhu (hardeeps)
Wednesday, 30 June 2004, 02:42 GMT
Reason for closing:  Accepted
Comment by Zakk Roberts (midkay) - Saturday, 10 April 2004, 01:20 GMT

Now the settings file is back to

Also checks the size and version of the saved settings file
to prevent loading older settings files. Thanks to Linus for
his help.
Comment by Zakk Roberts (midkay) - Saturday, 10 April 2004, 05:13 GMT

Added an American/European date format setting (built right
into the date on/off mode). The most recent is the latest
(the top one). also fixed a bug at the show logo screen
(it's F2 to exit, not ON). Thanks to amiconn for the
Comment by Anonymous Submitter - Thursday, 20 May 2004, 04:20 GMT

Latest file uploaded (version 2.1).

-Lots of bugfixes, including the main two:
wouldn't load settings
sometimes fullscreen hands were incorrect
-New clock mode (LCD [similar to digital])
also seperate settings for that mode.

Also fixed a bug dealing with the snprintf updates where it
sometimes wouldn't display the seconds or date right
(american / european are both working now).

Comment by Anonymous Submitter - Thursday, 20 May 2004, 14:39 GMT

File not uploaded yet, sorry.

Version 2.1 will also include these changes:

-animations for the logos (start/exit/credits)
-backlight on/off

Will be up later today or tomorrow latest.
Comment by Zakk Roberts (midkay) - Saturday, 22 May 2004, 06:52 GMT

Ok, latest updated added.

Featuring (From 2.0)

-New mode (LCD segments)
-Animations on the start/exit/credits logo
-lots of major bugfixes (hopefully nearing the bug free state)
-uses checkboxes from the rockbox function at the options screen
-random various cosmetic improvements (2 pages of info instead)

enjoy -- precompiled included
Comment by Zakk Roberts (midkay) - Tuesday, 29 June 2004, 10:02 GMT

New version - almost final - just uploaded:

-New mode, binary.
-New help screen, 9 pages long, use LEFT/RIGHT to navigate.
-New feature, "Counter" - F2 to Start/Stop, Hold F2 to
reset. Note: Doesn't appear in binary mode.
-Logo Selector Removed
-New "mode selector" - instead of cycling with PLAY, press
PLAY and pick a mode to go to it.

-less of a "jerk" during the animations - fixed.
-few small bugs fixed.

Special thanks to LinusN for his help with the counter no
matter how stupid I was :)