Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

SCA3300 Linux driver with dependency on just spidev

Project description

SCA3300 Driver Package

SCA3300 3-axis accelerometer Linux driver Python3 package.

Requirements

Installation

PyPi

https://pypi.org/project/sca3300/
You can install via pip install sca3300

From Source

  • Clone repo git clone https://github.com/algebratech/sca3300-driver
  • Install python3 setup.py install --user

Usage

import time

from sca3300 import SCA3300, Modes


def main():
    sca = SCA3300()
    sca.mode = Modes.MODE_3
    while True:
        print(sca.acceleration)
        time.sleep(0.02)


if __name__ == '__main__':
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sca3300, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sca3300-1.0.1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sca3300-1.0.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page