Sunday, 16 September 2007

Petrol Pumps

We started on the petrol pumps course work. I had to make a 7 segment LCD. I did this using case statements and a user controlled text box.
Case 1
img1.visible = true (etc.)


After I had got that working, i tried to add in more screens for the display, showing more numbers. So far, I have got it working but the code is very bulky as it uses different case statements for each number. I figure this could be done by creating a new number display as it is needed using arrays. i am still trying to figure that out.

I have created an image of what I think the console and display of the petrol pumps program should look like, here:

No comments: