Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython interface for DYMO postage scales.

NOTE: This library will not work on embedded linux, only on microcontrollers.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-dymoscale

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-dymoscale

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-dymoscale

Usage Example

Initialize the scale by passing it a data pin and a pin to toggle the units button:

# initialize the dymo scale
units_pin = digitalio.DigitalInOut(board.D3)
units_pin.switch_to_output()
dymo = adafruit_dymoscale.DYMOScale(board.D4, units_pin)

Get the item’s weight from the scale:

reading = dymo.weight
print(reading.weight)

Get the item’s units from the scale:

print(reading.units)

To toggle between units (simulate a button press):

dymo.toggle_unit_button(switch_unit=True)

To toggle the unit button, but preserve the unit displayed:

dymo.toggle_unit_button()

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Release files for adafruit-circuitpython-dymoscale 2.0.14

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

Source distribution (sdist)

Source distribution for adafruit-circuitpython-dymoscale 2.0.14
File Size Uploaded
adafruit_circuitpython_dymoscale-2.0.14.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-dymoscale 2.0.14
File Interpreter ABI Platform
adafruit_circuitpython_dymoscale-2.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 28.9 kB

Release files / adafruit_circuitpython_dymoscale-2.0.14.tar.gz

Download URL adafruit_circuitpython_dymoscale-2.0.14.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ac53682d3328357861fada36419740a54c7aa39b65e0a1160d9d9508a1320841
BLAKE2b-256 checksum
How to use checksums
3c5851b1197d76d9c515df3da745b081bf3d430f230da01872542e501eb55772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_dymoscale-2.0.14-py3-none-any.whl

Download URL adafruit_circuitpython_dymoscale-2.0.14-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c4db011f3dbcb31cc156a250c7128c41f39490f61010aea9d8fb3fb3c9f0d30
BLAKE2b-256 checksum
How to use checksums
93279c9fad0d1fb368839632631e2c0bff617142a9a1d72486f6a89ad90c89b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.0.14 This release

2 release files

2.0.13

2 release files

2.0.12

2 release files

2.0.11

2 release files

2.0.10

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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