Similar to the example code.

Dependencies:   mbed N5110

Revision:
7:f3b57f157655
Parent:
2:533869513c4a