fix the new approach using buttons

https://github.com/mindboards/ev3dev-kernel/issues/24
the test programs in the repo are for testing the implemented functionality, not for figuring out the OS implementation. Can you please rewrite the code to use your new button class? This way you also provide some usage 'documentation' to the user.