#include "mbed.h" enum Edge { Rising, Falling }; class ButtonInterrupt { public: // Default constructor. ButtonInterrupt(PinName buttonPin, PinMode pullType, Edge triggerOn, void (*executeMethod)(void)); };