(C++) How to respond to the user shaking the mobile phone?

January 18, 2018 ยท View on GitHub

The file '/sys/class/i2c-adapter/i2c-3/3-001d/coord' (the file does not have a file extension) contains the values of the accelerometer [1] (or see How to respond to the user shaking the mobile phone, example 1).