Over the last few days, we've been working on implementing a "7-Segment LCD Number Display" and after getting the display working for the numbers 0-9, we were then asked to expand on this so that when a user inputs a number such as "23" into a text box, it showed up the number 23 on the LCD display.
This took a few hours to get working sucessfully for numbers up to and including "999" but the program still had a few bugs (Such as, if the user was to enter "1000", the display would only show "100" and the end 0 would be dropped off.) which have yet to be fixed.
It would be pretty easy to get it working for a fourth digit, but the coding that goes into this is a bit clumsy and instead of just expanding on it so that the program can work with numbers up to 9999, I'm still working on getting a shorter amount of code to be able to cope with any number which is inserted into the program rather than the numbers I have set aside.
The reason we've been working on this LCD Display program was for the build up to the Module 3 resit paper which requires you to create a program for a petrol station and the display has to be an LCD one.
Computing AS/A2 Page:
http://www.aqa.org.uk/qual/gceasa/comp.php
This is the coursework/program which I'll be looking at over the next few months.
Sunday, 16 September 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment