Python module for the [SparkFun Qwiic Alphanumeric Display].
It is compatible with the following products:
- SparkFun Qwiic Alphanumeric Display - Pink
- SparkFun Qwiic Alphanumeric Display - Red
- SparkFun Qwiic Alphanumeric Display - Purple
- SparkFun Qwiic Alphanumeric Display - Blue
- SparkFun Qwiic Alphanumeric Display - Green
- SparkFun Qwiic Alphanumeric Display - White
This python package is a port of the existing SparkFun Qwiic Alphanumeric Arduino Library
This package can be used in conjunction with the overall SparkFun qwiic Python Package
New to qwiic? Take a look at the entire SparkFun qwiic ecosystem.
The Qwiic LED Stick Python package currently supports the following platforms:
This driver package depends on the qwiic I2C driver: Qwiic_I2C_Py
The SparkFun Qwiic LED Stick module documentation is hosted at ReadTheDocs
This repository is hosted on PyPi as the sparkfun-qwiic-alphanumeric package. On systems that support PyPi installation via pip, this library is installed using the following commands
For all users (note: the user must have sudo privileges):
sudo pip install sparkfun-qwiic-alphanumeric
For the current user:
pip install sparkfun-qwiic-alphanumeric
To install, make sure the setuptools package is installed on the system.
Direct installation at the command line:
python setup.py install
To build a package for use with pip:
python setup.py sdist
A package file is built and placed in a subdirectory called dist. This package file can be installed using pip.
cd dist
pip install sparkfun-qwiic-alphanumeric-<version>.tar.gz
See the examples directory for more detailed use examples.
from __future__ import print_function
import qwiic_alphanumeric
import time
import sys
def run_example():
print("\nSparkFun Qwiic Alphanumeric - Example 4: Print String")
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
if my_display.begin() == False:
print("\nThe Qwiic Alphanumeric isn't connected to the system. Please check your connection.", \
file=sys.stderr)
return
print("\nQwiic Alphanumeric ready!")
my_display.print("Milk")
if __name__ == '__main__':
try:
run_example()
except (KeyboardInterrupt, SystemExit) as exErr:
print("\nEnding Example 4")
sys.exit(0)