testcode using the buttons connected to the GPIO