This is how i got the hardware to work. Not saying that it cant work any other way. I haven't tied anything of yours in. So likely delete mine from rev 2 or 3, and then put this instead. Then it might work.

Dependencies:   mbed

Committer:
PET
Date:
Thu Jun 22 04:45:01 2017 +0000
Revision:
0:c426396d5fdf
If you wanted to work on it, or look at it.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
PET 0:c426396d5fdf 1 https://mbed.org/users/mbed_official/code/mbed/builds/0f02307a0877