7. Use motion sensor in RPiSparkModule
In the previous chapter we used the buttons to control the movement of the ball and to change the speed of the movement. This application is a good example of how RPiSparkModule button handles programming.
We have learned how to use the button input of RPi-Spark. Next let's learn a more interesting feature of RPi-Spark, which is the gravity sensor. In Chapter 7, we use this sensor to add interesting features to the application: the gravity inertia system.