Remove gpio and use mbed DigitalOut/DigitalIn