Hawk01
New Member
Hello everybody,
I've got a course project that needs to be done, and I am utterly stuck with no idea how to continue.
The idea is simple - make a counter for free and occupied spots for a parking lot (I've attached a visual example)![Lot.jpg Lot.jpg](https://www.electro-tech-online.com/data/attachments/78/78837-d0a7e5d8c59581631001bc9cca4ecc5e.jpg)
It can only hold 10 cars, so it should go only until 10. I've done quite a bit of work, but at this point I have a few problems.
X1 - Cannot get it show numbers with binary code properly.![x1.png x1.png](https://www.electro-tech-online.com/data/attachments/78/78855-ad44c60ce504c6132571b5c3f9cc9ec8.jpg)
X2 - Cannot figure out the way to get "s" to decrease when "a" is pressed and the exact opposite.![x2.png x2.png](https://www.electro-tech-online.com/data/attachments/78/78856-8908f538ef1e7782dbcf712db13a3d58.jpg)
Added both files to the zip attachment, any help will be really appreciated and will be mentioned in the end project.
Thank you in advance,
Martin
EDIT: Added the pictures of the project.
I've got a course project that needs to be done, and I am utterly stuck with no idea how to continue.
The idea is simple - make a counter for free and occupied spots for a parking lot (I've attached a visual example)
![Lot.jpg Lot.jpg](https://www.electro-tech-online.com/data/attachments/78/78837-d0a7e5d8c59581631001bc9cca4ecc5e.jpg)
It can only hold 10 cars, so it should go only until 10. I've done quite a bit of work, but at this point I have a few problems.
X1 - Cannot get it show numbers with binary code properly.
![x1.png x1.png](https://www.electro-tech-online.com/data/attachments/78/78855-ad44c60ce504c6132571b5c3f9cc9ec8.jpg)
X2 - Cannot figure out the way to get "s" to decrease when "a" is pressed and the exact opposite.
![x2.png x2.png](https://www.electro-tech-online.com/data/attachments/78/78856-8908f538ef1e7782dbcf712db13a3d58.jpg)
Added both files to the zip attachment, any help will be really appreciated and will be mentioned in the end project.
Thank you in advance,
Martin
EDIT: Added the pictures of the project.
Attachments
Last edited: