Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ Essentially, the script takes an input images, scales it to the printers native
* Peripage A6
* Peripage A6+
* Peripage A40
* Peripage A40+

## Prerequisites

* Peripage A6/A6+/A40/e.t.c printer
* Peripage A6/A6+/A40/A40+/e.t.c printer
* Python 3

## Installation
Expand Down Expand Up @@ -130,7 +131,7 @@ Install module and run

```
$ python -m peripage -h
usage: __main__.py [-h] -m MAC [-c [0-2]] [-b [0-255]] -p {A6,A6p,A40} (-t TEXT | -s | -i IMAGE | -q QR | -e)
usage: __main__.py [-h] -m MAC [-c [0-2]] [-b [0-255]] -p {A6,A6p,A40,A40p} (-t TEXT | -s | -i IMAGE | -q QR | -e)

Print on a Peripage printer via bluetooth

Expand All @@ -141,7 +142,7 @@ optional arguments:
Concentration value for printing (temperature)
-b [0-255], --break [0-255]
Size of the break inserted after printed image or text
-p {A6,A6p,A40}, --printer {A6,A6p,A40}
-p {A6,A6p,A40,A40p}, --printer {A6,A6p,A40,A40p}
Printer model selection
-t TEXT, --text TEXT ASCII text to print. Text must be ASCII-safe and will be filtered for invalid characters
-s, --stream Print text received from STDIN, line by line. Text must be ASCII-safe and will be filtered for invalid characters
Expand Down
8 changes: 7 additions & 1 deletion peripage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, row_bytes: int, row_width: int, row_characters: int):
class PrinterType(enum.Enum):
"""
Defines names for supported printer types.
Currently supported printers are: Peripage A6, A6+, A40
Currently supported printers are: Peripage A6, A6+, A40, A40+
"""

A6 = PrinterTypeSpecs(
Expand All @@ -61,6 +61,12 @@ class PrinterType(enum.Enum):
row_characters=144
)

A40p = PrinterTypeSpecs(
row_bytes=231,
row_width=1848,
row_characters=154
)

@classmethod
def names(cls) -> typing.List[str]:
"""List available keys from Enum"""
Expand Down