Successful label printing

This commit is contained in:
2023-09-24 18:08:18 +02:00
parent b940890268
commit 4b3247ef6d
4 changed files with 30 additions and 11 deletions

View File

@@ -65,7 +65,9 @@ class P700Printer : public ::ptprnt::IPrinterDriver {
.vid = 0x04f9,
.pid = 0x2061};
std::map<std::string, std::vector<uint8_t>> commands{
{"rasterstart", {0x1b, 0x69, 0x52, 0x01}},
{"rasterstart",
{0x1b, 0x69, 0x61,
0x01}}, // unique for P700, other printers have the 2 byte set to 0x52 instead of 0x61
{"info", {0x1b, 0x69, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}},
{"packbitson", {0x02}},
{"lf", {0x5a}},