Added rise, fall, pulse HI and LO events. The pulse Hi and LO event timestamp given in the MicroBitEvent is the duration for which the input was HI or LO for. eventOn(int eventType) is used to configure the events generated from the pin instance.