{"id":13802272,"url":"https://github.com/ayoy/micropython-thermal-printer","last_synced_at":"2025-07-13T15:30:31.198Z","repository":{"id":66441831,"uuid":"113624314","full_name":"ayoy/micropython-thermal-printer","owner":"ayoy","description":"The MicroPython port of Python Thermal Printer by Adafruit","archived":false,"fork":false,"pushed_at":"2017-12-26T19:39:24.000Z","size":68,"stargazers_count":23,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-22T12:34:42.009Z","etag":null,"topics":["adafruit","micropython","printer","pycom","thermal-printer"],"latest_commit_sha":null,"homepage":"http://kapusta.cc","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayoy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-08T22:50:55.000Z","updated_at":"2024-04-20T08:50:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"914c227f-5c67-4903-8564-8c120977ee90","html_url":"https://github.com/ayoy/micropython-thermal-printer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoy%2Fmicropython-thermal-printer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoy%2Fmicropython-thermal-printer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoy%2Fmicropython-thermal-printer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoy%2Fmicropython-thermal-printer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayoy","download_url":"https://codeload.github.com/ayoy/micropython-thermal-printer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225893368,"owners_count":17540914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adafruit","micropython","printer","pycom","thermal-printer"],"created_at":"2024-08-04T00:01:40.795Z","updated_at":"2024-11-22T11:51:09.916Z","avatar_url":"https://github.com/ayoy.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Display"],"readme":"# MicroPython Thermal Printer\nThis is the MicroPython port of Python Thermal Printer by Adafruit, available [elsewhere on GitHub](https://github.com/adafruit/Python-Thermal-Printer).\n\nRead the full story at https://kapusta.cc/2017/12/11/thermal-printer-library-for-micropython/.\n\n## The summary of changes\n\n1. Removed Python 2.x code\n1. Removed `writeToStdout()`\n1. Replaced `Serial` with `machine.UART`\n1. Removed support for pre-2.68 firmware\n1. Removed image printing method, because it depended on Python Imaging Library\n1. Disabled calls to `wake()` and `reset()` at initialization\n1. Fixes to `sleepAfter()` and `wake()`\n\n## Additions\n\n* `printBitmapFromFile()` - allows for printing the bitmap from file on disk, instead of reading it from array of bytes like `printBitmap()` does.\n* `printBMPImage()` - allows for printing the actual .bmp image. Supports 1-bit Windows BMP format only, up to 384px wide.\n* heat dots, heat time and heat interval settings are parametrized in the initializer to fine tune printer output.\n\n## Usage\n\nSee [printertest.py]( https://github.com/ayoy/micropython-thermal-printer/blob/master/printertest.py) for usage example.\n\n## Testing\n\nSo far I tested it only with LoPy version 1. Works fine, besides printing large bitmaps that required too much memory for the LoPy (for the bitmap provided with printertest.py) - hence `printBitmapFromFile()`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoy%2Fmicropython-thermal-printer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayoy%2Fmicropython-thermal-printer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoy%2Fmicropython-thermal-printer/lists"}