first steps in printing via libusb
This commit is contained in:
parent
77040e9f27
commit
a34fd9aefd
3 changed files with 59 additions and 0 deletions
|
@ -18,6 +18,19 @@ class PosPrinter
|
|||
public:
|
||||
PosPrinter();
|
||||
~PosPrinter();
|
||||
void write(const std::string& text);
|
||||
void printHeader();
|
||||
void printTest();
|
||||
|
||||
struct Command {
|
||||
static const std::string RESET;
|
||||
static const std::string ENCODING;
|
||||
static const std::string CENTERING;
|
||||
static const std::string FONT_SIZE_BIG;
|
||||
static const std::string FONT_SIZE_NORMAL;
|
||||
static const std::string LEFT_ALIGN;
|
||||
static const std::string FEED;
|
||||
};
|
||||
|
||||
private:
|
||||
libusb_context* contextPtr_{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue