#NCR 7167 DRIVER C++
A framework for writing to the receipt printer over usb serial connection. Will probably work for other NCR models with a little tweaking.
- String printing
- Monochrome Bitmap printing (QR codes)
- QR code generation
- Ticket Cut
- Beep
For our Human Centered Robotics course at university we are making a robot that will print unique leaflets/tickets after "making friends" with a human. So we bought a receipt printer for its rapid printing and cutting capabilities.
The "main focus" of the project is the C++ code to print text files, QR codes and cut.
Remember to ensure permissions where printer is connected:
CHMOD 777 /dev/ttyUSBX
Setup + arguments (all required):
./async
- int port
- int/epoch time
- string messagepath
- bool cut
- int lines (suggested: 0)
- bool beep
Samples:
./async 0 1354133999 message.txt true 3 true ./async 0 1354133999 message.txt false 0 false
by