forked from platypush/platypush
757e0ff9bf
plugin and backend
18 lines
490 B
Python
18 lines
490 B
Python
from platypush.backend.sensor import SensorBackend
|
|
|
|
|
|
class SensorAccelerometerBackend(SensorBackend):
|
|
"""
|
|
Backend to poll position information from an accelerometer sensor.
|
|
|
|
Requires:
|
|
|
|
* ``Adafruit_Python_GPIO`` (``pip install Adafruit_Python_GPIO``)
|
|
* The :mod:`platypush.plugins.gpio.sensor.accelerometer` plugin configured
|
|
"""
|
|
|
|
def __init__(self, **kwargs):
|
|
super().__init__(plugin='gpio.sensor.accelerometer', **kwargs)
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|