I have to print a bmp image with the library Adafruit_Thermal.cpp.
(Mini Thermal Receipt Printer : ID 597 : $49.95 : Adafruit Industries, Unique & fun DIY electronics and kits)
I used the example of adufruit
printer.printBitmap (adalogo_width, adalogo_height, adalogo_data)
using the function
void Adafruit_Thermal :: printBitmap ().
Can anyone help me and tell me how I can print the image
at the center of the paper? , Or how can I print it, for example, the 10 column?
I took a quick look at the library that you are using, but there doesn't appear to be a function in the library that does it
No doubt its possible, but you'd need to modify the library to add the new functionality you want.
As the code is posted on GitHub you would probably be better off posting your question as an issue to
Someone who maintains the code at Adafruit who maintains the code would be the best person to advise you
thanks for the reply.
Adafruit has developed libraries for the printer, these libraries are just wrappers for Comand Esc / Pos
(https://www.sparkfun.com/datasheets/Com ... al/A2-user% 20manual-1.pdf)
So it is not important to the wrapper code, but the commands Esc \ Pos I have to send through a sequence of bytes, which should allow you to align the bitmap.
thanks anyway.
pafra:
thanks for the reply.
Adafruit has developed libraries for the printer, these libraries are just wrappers for Comand Esc / Pos
(https://www.sparkfun.com/datasheets/Com ... al/A2-user% 20manual-1.pdf)
So it is not important to the wrapper code, but the commands Esc \ Pos I have to send through a sequence of bytes, which should allow you to align the bitmap.
thanks anyway.
Is it Esc / Pos or Esc \ Pos? Maybe that's where your problems are.