This release is a pre-release and may not be stable for production use.
ADXL355 Python Driver
Typed, transport-agnostic Python 3.10+ support for the Analog Devices ADXL355.
from adxl355 import ADXL355, PowerMode, Range
from adxl355.testing import MockTransport
transport = MockTransport()
transport.set_identity_ok()
device = ADXL355(transport)
device.probe()
device.set_range(Range.G2)
device.set_power_mode(PowerMode.MEASUREMENT)
print(device.read_acceleration_g())
Install optional Linux adapters with adxl355[spi] or adxl355[i2c].
See the repository root documentation for lifecycle, hardware wiring, and
cross-language behavior details.
Hardware offset calibration
from adxl355 import ADXL355, Axis, calculate_offset
current = device.read_offset(Axis.X)
offset = calculate_offset(measured_raw=1200, expected_raw=0, current_offset=current)
device.write_offset(Axis.X, offset)
print(device.read_offset(Axis.X))
One offset count equals 16 raw acceleration LSB. Writes are volatile, require a
successful probe, enter standby when necessary, and restore the prior power mode.
See ../docs/calibration.md for orientation, sampling, temperature, rollback,
and accuracy limitations.
Electrostatic self-test response
from adxl355 import ADXL355, SelfTestConfig
result = device.run_self_test(SelfTestConfig(sample_count=64, settle_samples=8))
print(result.abs_delta_g)
The sequence measures an ST1-only baseline followed by ST1+ST2 stimulation using
bounded DATA_RDY polling. The driver temporarily uses ±2 g and 125 Hz, then
restores SELF_TEST, RANGE, FILTER, POWER_CTL, and the cached range.
Default configuration reports the measured response without inventing normative
pass/fail limits. Applications may provide fixture-specific thresholds when they
own and document that policy.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 adxl355-0.1.0a3.tar.gz.
File metadata
- Download URL: adxl355-0.1.0a3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99db8bc6f4b1eb9dc19d4d48e79f6f2318c3e598c3fa8a2e4f129644e7453eed
|
|
| MD5 |
8d7d067e3451648fc3d74870bbd22d82
|
|
| BLAKE2b-256 |
e42477d4f86b3ec925bf9149d0682217e7e303f13ce479d68150c7fb06f0942b
|
Provenance
The following attestation bundles were made for adxl355-0.1.0a3.tar.gz:
Publisher:
release.yml on oaslananka/adxl355
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adxl355-0.1.0a3.tar.gz -
Subject digest:
99db8bc6f4b1eb9dc19d4d48e79f6f2318c3e598c3fa8a2e4f129644e7453eed - Sigstore transparency entry: 2324098165
- Sigstore integration time:
-
Permalink:
oaslananka/adxl355@78386cd7fc746ab866d1f69fcda53acb6d29bf65 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oaslananka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@78386cd7fc746ab866d1f69fcda53acb6d29bf65 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file adxl355-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: adxl355-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad7a169bf50fd2b93484a5fbc7b9691a75a4b4c77ec9e3b6fc80969b7a828e4
|
|
| MD5 |
9ea866e18b6b465a5fc6bd22803d5275
|
|
| BLAKE2b-256 |
dc5249631f375890441002b118711972a192a4c0f7aff2ad5255746bad236d7d
|
Provenance
The following attestation bundles were made for adxl355-0.1.0a3-py3-none-any.whl:
Publisher:
release.yml on oaslananka/adxl355
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adxl355-0.1.0a3-py3-none-any.whl -
Subject digest:
dad7a169bf50fd2b93484a5fbc7b9691a75a4b4c77ec9e3b6fc80969b7a828e4 - Sigstore transparency entry: 2324098211
- Sigstore integration time:
-
Permalink:
oaslananka/adxl355@78386cd7fc746ab866d1f69fcda53acb6d29bf65 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oaslananka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@78386cd7fc746ab866d1f69fcda53acb6d29bf65 -
Trigger Event:
workflow_dispatch
-
Statement type: