https://github.com/zklapow/thermal_printer
High level API for interacting with CSN-A2 thermal printer
https://github.com/zklapow/thermal_printer
rust serial thermal-printer
Last synced: 6 months ago
JSON representation
High level API for interacting with CSN-A2 thermal printer
- Host: GitHub
- URL: https://github.com/zklapow/thermal_printer
- Owner: zklapow
- License: apache-2.0
- Created: 2017-05-01T01:03:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T00:46:38.000Z (almost 7 years ago)
- Last Synced: 2025-04-10T09:19:36.939Z (6 months ago)
- Topics: rust, serial, thermal-printer
- Language: Rust
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/zklapow/thermal_printer)
This library provides a simple high level API for interacting with thermal printers like those you can get from [Sparkfun](https://www.sparkfun.com/products/14970) or [Adafruit](https://www.adafruit.com/product/597). It is written to be `no-std` compatible but simply needs a serial port and so will work equally well on linux or other operating systems via the [`serial`](https://crates.io/crates/serial) crate.
## WIP
Many pieces of functionality are not yet supported. In the future this crate aims to support the full range of functions these printers provide including:
- Loading and printing bitmap images
- Bar codes
- Custom characters
- Multiple character sets
- Reading printer statusAnd many more! PR's are welcome.
## Examples
See the [examples folder](./examples).
## License
Licensed under the Apache License, Version 2.0 ([LICENSE](./LICENSE))
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.