SCA3300 Linux driver with dependency on just spidev
Project description
SCA3300 Driver Package
SCA3300 3-axis accelerometer Linux driver Python3 package.
Requirements
- Python 3.5+ (package uses static typing.)
- Linux (i.e Raspberry Pi or https://github.com/TCAllen07/raspi-device-mocks)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sca3300-1.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sca3300-1.0.1.tar.gz.
File metadata
- Download URL: sca3300-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c38c884a55857adbd06364cfe1d991aa244d85f95bcb23b74dd3a55378f64d6f
|
|
| MD5 |
d13933d4b20315c78c27bc11196b20fa
|
|
| BLAKE2b-256 |
cf56df39d0e145f7b0d228dcdb1a517e26b233ac859d01a1a3a72f9767810774
|
File details
Details for the file sca3300-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sca3300-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c73558ee78d10d8789130532c44876ad3c253c4ea716d0ba82f671b8f4b1d1d
|
|
| MD5 |
5f365d13d501493e48f30569a3c54369
|
|
| BLAKE2b-256 |
cb22205286d345c4917c7e7684135982d6e48c3f9cbf8c02cabbc62eec445fdb
|