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.
Usage Example¶
See examples/simpletest.py for a demo of basic printer usage.
API Reference¶
-
adafruit_thermal_printer.
get_printer_class
(version)[source]¶ Retrieve the class to construct for an instance of the specified thermal printer version. Pass in the printer firmware version as a numeric value like 2.68, 2.64, etc. You can get this value by holding the button on the printer as it powers on and a test page is printed–look at the bottom of the test page for the version number.
Contributing¶
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Building locally¶
To build this library locally you’ll need to install the circuitpython-build-tools package.
python3 -m venv .env
source .env/bin/activate
pip install circuitpython-build-tools
Once installed, make sure you are in the virtual environment:
source .env/bin/activate
Then run the build:
circuitpython-build-bundles --filename_prefix adafruit_circuitpython_thermal_printer --library_location .