Jonathan Piat, wrote a great article about the API and driver implementation of the Logi-pi in this months issue of MagPi. Be sure to have a look.