Dear PaulS,
Sorry for the late replay and at the same time thanks for your guidance.
The code snippet you provided with Switch Case worked and I am very happy that it did.
Also I had no idea how to properly indent the code and thanks to your tip I did that also.
Can you elaborate a bit on this so I can give you better answer:
"Then, try to explain what you are doing. It's completely wrong, but I am interested in your explanation."
Another question: to make the display turn off after x seconds do I need some timer library? or how do I implement a "time counter" ? do I need some hardware to track time ? any advice is welcomed ...
Regards,
Catalin