WIP: Start from Arduino example.
WIP: adapt to nrf51.
WIP: update makefile.
WIP: remove a few compilation errors (types...).
WIP: compilation OK, to test.