reading only one interrupt when it changes its value

Dependencies:   Hotboards_switches mbed

Fork of input_change by Roman Valencia