Skip to main content
Pre-release

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.

Metadata

Release files for adxl355 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adxl355 0.1.0a3
File Size Uploaded
adxl355-0.1.0a3.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adxl355 0.1.0a3
File Interpreter ABI Platform
adxl355-0.1.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 34.8 kB

Release files / adxl355-0.1.0a3.tar.gz

Download URL adxl355-0.1.0a3.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99db8bc6f4b1eb9dc19d4d48e79f6f2318c3e598c3fa8a2e4f129644e7453eed
BLAKE2b-256 checksum
How to use checksums
e42477d4f86b3ec925bf9149d0682217e7e303f13ce479d68150c7fb06f0942b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release files / adxl355-0.1.0a3-py3-none-any.whl

Download URL adxl355-0.1.0a3-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dad7a169bf50fd2b93484a5fbc7b9691a75a4b4c77ec9e3b6fc80969b7a828e4
BLAKE2b-256 checksum
How to use checksums
dc5249631f375890441002b118711972a192a4c0f7aff2ad5255746bad236d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page