Skip to main content

LCD2USB’s Python Library

home: http://github.com/xyb/lcd2usb

PyPI: http://pypi.python.org/pypi/lcd2usb

Introduce

The LCD2USB’s Python Library is a Pure-python wrapper for LCD2USB which provide a simple way to control your LCD2USB display device. LCD2USB is a open source/open hardware project to connect HD44780 based text LCD displays to various PCs via USB.

Usage

Connect a lcd2usb device is easy:

>>> from lcd2usb import LCD
>>> lcd = LCD()
>>> lcd.info()
Found LCD2USB device on bus 004 device 004.

Get lcd2usb firmware version:

>>> lcd.version
(1, 9)

Write something on the screen:

>>> lcd.write('Hello, LCD2USB!')

Clean screen and wirte some on the 2nd row:

>>> lcd.clear()
>>> lcd.goto(0, 1)
>>> lcd.write('Flying with PYTHON')

Or simpler:

>>> lcd.write('Flying with PYTHON', 0, 1)

Define a custom smile symbol and display it on the center of first row (on a 4x20 display):

>>> from lcd2usb import SMILE_SYMBOL
>>> lcd.define_char(0, SMILE_SYMBOL)
>>> lcd.write('\0', 9, 0)

That it!

If you need a quickly running test for your device, use this:

python -m lcd2usb

Requirements

Installation

Installation is done just as for any other Python library. Using the pip or easy_install command from setuptools is the easiest:

pip install lcd2usb

Or:

easy_install install lcd2usb

Release files for lcd2usb 1.4

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

Source distribution (sdist)

Source distribution for lcd2usb 1.4
File Size Uploaded
lcd2usb-1.4.tar.gz 7.7 kB Details

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / lcd2usb-1.4.tar.gz

Download URL lcd2usb-1.4.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c9774b32d6e88989cf621bb7be6a934c73a75b38610863b08519c5ab14e3bf2b
BLAKE2b-256 checksum
How to use checksums
2e266dfe7daf2349fe190cd0a7d999531fca249cb0e25700f1fafeef4f552df1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.9

Release files / lcd2usb-1.4-py3-none-any.whl

Download URL lcd2usb-1.4-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fdb2700758ce5683b0e021f4cdc4c7a7dd02fa172ec89fcf4de0f28d2b1fbab
BLAKE2b-256 checksum
How to use checksums
f75874ae22b64ee901a09258c0054488b6c9f55d9c723d09382fac547b7df35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

2 release files

1.2

1 release file

1.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