|
|
| File Information |
| Description |
Time is displayed as 6 columns of LEDs in the form HH:MM:SS
Thus, the included screenshot image would represent 03:49:27, because:
the first column is 00 binary = 0
the second column is 0011 binary = 3
the third column is 100 binary = 4
the fourth column is 1001 binary = 9
the fifth column is 010 binary = 2
and the sixth column is 0111 binary = 7
For another example, check out the help section of the downloaded file.
Controls:
Use the menus to change the LED color, toggle between military (24-hour) and civilian (12-hour) time, and view the help notes. Shortcut keys work too.
Examples:
>> binclock; % starts the clock with blue LEDs (default)
>> binclock([0 1 0]); % starts the clock with green LEDs
>> binclock(rand(1,3)); % starts the clock with random colored LEDs |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 26 Mar 2007 |
Mike Briggs
|
|
|
| 26 Mar 2007 |
Tim Davis
|
|
|
| 14 May 2007 |
Rachel Cobleigh
|
|
|
| 15 Jun 2007 |
The Author
|
|
|
| 18 Sep 2008 |
George Bertalan
|
|
|
| Updates |
| 26 Mar 2007 |
Fixed the spacing for the example in the description |
| 27 Mar 2007 |
Added capability to toggle between 12-hour (civilian) and 24-hour (military) time, and fixed the description. |
| 28 Mar 2007 |
Updated the example in the description (for the last time :o) |
| 27 Apr 2007 |
Simplified m-file code, added comments |
| 27 Apr 2007 |
Simplified m-file code, added comments |
| 15 Jun 2007 |
Reworked this clock to use nested functions and a timer. Now the user doesn't have to close the window to work on other things. I also added some menu functions. |
| 27 Jul 2007 |
Added "custom color" option and defined shortcut keys. |
|
Contact us at files@mathworks.com