use the PortInOut class to make a key_controlled counter

Dependencies:   mbed

Fork of PortInOut_HelloWorld by mbed official

Revision:
2:7e1bc5947174
Parent:
1:1a2e0383909d