B.Goode wrote:Irrespective of the implementation language, my approach would be to read the status of each of the 10 buttons sequentially - but hopefully nearly 'instantaneously' - and store those statuses in some data structure such as a list or array. After that, counting the number of stored statuses for which "Pressed == TRUE" should be trivial, and that count gives you the basis for deciding the path your code subsequently takes.
If you really need to know about buttons literally being pressed 'at the same time' the sequential read of the gpio pins is probably not appropriate and you may need to think about some other way of connecting the buttons, via additional hardware, so that you can read all 10 statuses simultaneoulsy.
I have found the logic and it works better but a bit delayed.. but i am facing another big problem

my gpios stopped working.. please check my new post. thank you...