Skip to content

Instantly share code, notes, and snippets.

@kiok46
Last active June 10, 2018 09:47
Show Gist options
  • Select an option

  • Save kiok46/d543b8aeab07e3465bada3ec02b57ef2 to your computer and use it in GitHub Desktop.

Select an option

Save kiok46/d543b8aeab07e3465bada3ec02b57ef2 to your computer and use it in GitHub Desktop.
Plyer: Platform independent compatibility layer
from plyer import accelerometer
accelerometer.enable()
accelerometer.acceleration
//(-10.048464775085449, 6.825869083404541, 7.7260890007019043)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment