Similar to the example code.

Dependencies:   mbed N5110

Revision:
7:f3b57f157655
Parent:
0:97418ec4c37d