Similar to the example code.

Dependencies:   mbed N5110

Revision:
7:f3b57f157655
Parent:
4:ed68b20e2075