Move accelerometer example to its own snipet.