Is button pressed? If yes how long? Won´t work

Gigglerus:
I want to use 3 pins as input. Just digital HIGH or LOW(Im using buttons while programming it). And afterwards write this into a database.

My problems are:

  1. It doesnt sense if/which button is pressed. Or how long it is pressed.

Write a simple program to learn how to detect the button. Then when it works you can incorporate it into a larger program.

If it does not work it will be much easier to help with a short program.

Also, use the AutoFormat tool to lay your program out for easier reading.

And don't use single characters for variable names other than in FOR loops. When I try to highlight all of the instances of a variable called 'u' I get every 'u' in every word in the program.

The Python problem seems to be a Yun issue and there is a separate Yun section of the Forum.

...R