Rab18’s Weblog


Complete 24 Hour Count
January 10, 2008, 10:06 pm
Filed under: Programming

final-program.jpgsecond-final-program1.jpg

Trying to work out how and where to put a (if then) command in basic was very difficult. By identifying the need for a flow diagram it made this process easier. By directly using the flow chart I could identify where the command should be placed. By asking the questions do hours = 4 if no continue counting, but if yes ask another question.  Do tens of hours = 2 if not continue counting but if yes start at 0. By combining two questions it was possible to start the hour’s digit at 0 after 23:59. Thus giving 00:00 at midnight on the 24 hour clock. The other problem with the previous program were the four digits not giving an even brightness, to rectify this problem the let pin= b0, b1, b2, b3 command was repeated in a different order. The hope was that putting them in a different sequence would even the brightness.  This worked in practice also by repeating the sequence it also added to the brightness.


No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>