Hello,
Maybe I did not state the question clearly. I know, "LF" will print the buffer and starts the new line. How do I position the cursor in the current line other than the start of line. i.e. I print something than I want to place the cursor at position 10, 15, and 20. or any other position.
How can I contact the printer engineers regarding the "HT" command?
Thanks,
Sam
Mini Thermal printer SCI
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
Print a bunch of spaces:samabed wrote:I print something than I want to place the cursor at position 10, 15, and 20. or any other position.
Code: Select all
void indent(int spaces)
{
for (int i=0; i < spaces; i++)
printer.print(" ");
}
- samabed
- Posts: 16
- Joined: Fri Jul 05, 2013 11:21 am
Re: Mini Thermal printer SCI
Let me try this question again.
I have differnt strings such as "Yes", "No", "Short", "Open", and ... All of this start from 1st position on the line. Please note that these are diffrent sizes. I want to start next string from char position 10 to line up with the above and/or below line(s) and print these or other strings starting from position 10. and next strings from position 20 on the same line. This means that putting fix number of spaces between words does not work.
There is no email or phone contact information in the data sheet or any other documents. I thought you are our connection to the manufacturer. Why getting technical information is like pulling teeth?
Thanks,
Sam
I have differnt strings such as "Yes", "No", "Short", "Open", and ... All of this start from 1st position on the line. Please note that these are diffrent sizes. I want to start next string from char position 10 to line up with the above and/or below line(s) and print these or other strings starting from position 10. and next strings from position 20 on the same line. This means that putting fix number of spaces between words does not work.
There is no email or phone contact information in the data sheet or any other documents. I thought you are our connection to the manufacturer. Why getting technical information is like pulling teeth?
Thanks,
Sam
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
I've escalated this to see if it's possible to contact the manufacturer. Meanwhile, you can get the same effect with this function:
So you would call it as follows:
Code: Select all
void printWithTab(char* printStr)
{
int spaces = 10 - strlen(printStr);
printer.print(printStr);
for (int i=0; i < spaces; i++)
printer.print(" ");
}
Code: Select all
printWithTab("Yes");
printWithTab("No");
printWithTab("Short");
printWithTab("Open");
. . . etc . . .
- samabed
- Posts: 16
- Joined: Fri Jul 05, 2013 11:21 am
Re: Mini Thermal printer SCI
Thank you very much for helping me and contacting the manufacturer.
I will try your suggestion, but it will be much cleaner if we get the cursor position and/or the "HT" command to work.
Thanks again,
Sam
I will try your suggestion, but it will be much cleaner if we get the cursor position and/or the "HT" command to work.
Thanks again,
Sam
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
I've been told that our policy is to not release manufacturer information. I think you'll have to make do with the workaround I supplied
- samabed
- Posts: 16
- Joined: Fri Jul 05, 2013 11:21 am
Re: Mini Thermal printer SCI
Maybe you can ask them why the Horizontal Tab, "HT" does not work?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
Unfortunately, these people are not very communicative. And even if they had a firmware fix, how are you going to apply it? Just use the routine I gave you.
- samabed
- Posts: 16
- Joined: Fri Jul 05, 2013 11:21 am
Re: Mini Thermal printer SCI
Do you know the manufacturer and part number of the mating connectors )2 pins and 3 pins) which are used by the printer?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
I think they are JST connectors. I don't know any details:
http://www.jst-mfg.com/product/detail_e.php?series=277
http://www.jst-mfg.com/product/detail_e.php?series=277
-
- Posts: 4
- Joined: Sat Apr 19, 2014 10:04 pm
Re: Mini Thermal printer SCI
Hi.samabed wrote:I hope, this is the right place for this topic. If not please direct me to the right location.
I am interfacing Mini Thermal Printer with PIC18F4455.
1. What is SCI technical data such as Number of start bit(s), stop bits, Parity, ....
2. Do you have a basic "C" liberary for this printer? Where is the liberary?
3. Do you have some sample code for this?
Thanks,
Sam
I do not know if this is the correct place to ask some questions. I Hop.
I want to know if I can use the microprinter with aPIC 16F877.
and if you supply the technical data and BANNED to conect the printer with PIC.
I want to know if the connection is made betwen the microcontroller and the printer whith out any other device?
sorry my english is not good enough .
Thanks
Cesar
-
- Posts: 4
- Joined: Sat Apr 19, 2014 10:04 pm
Re: Mini Thermal printer SCI
Hi.
I do not know if this is the correct place to make some questions about the microprinter adafruit. I hope.
1. Can I connect the printer with a Microcontroler PIC 16F877 ?
2
I do not know if this is the correct place to make some questions about the microprinter adafruit. I hope.
1. Can I connect the printer with a Microcontroler PIC 16F877 ?
2
-
- Posts: 4
- Joined: Sat Apr 19, 2014 10:04 pm
Re: Mini Thermal printer SCI
Sorry i could not complete my question.
Can I connect the Microprinter with a Microcontrller PIC 16F877?
do you sale the printer with the data shet and the BANNED to send information PIC microprinter ?
Do you have any kind of xample with Assembler ( is the only one that I know) ?
Thanks a Lot
Cesar
Can I connect the Microprinter with a Microcontrller PIC 16F877?
do you sale the printer with the data shet and the BANNED to send information PIC microprinter ?
Do you have any kind of xample with Assembler ( is the only one that I know) ?
Thanks a Lot
Cesar
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal printer SCI
You can connect the printer to any mocrocontroller that has a serial output port. I presume the PIC has a serial port.
We don't have any assembly-language examples. All we have is our C-language library:
https://github.com/adafruit/Adafruit-Th ... er-Library
and our python library:
https://github.com/adafruit/Python-Thermal-Printer
The datasheet and user manual are linked on the product page, under "Downloads":
https://www.adafruit.com/product/597
We don't have any assembly-language examples. All we have is our C-language library:
https://github.com/adafruit/Adafruit-Th ... er-Library
and our python library:
https://github.com/adafruit/Python-Thermal-Printer
The datasheet and user manual are linked on the product page, under "Downloads":
https://www.adafruit.com/product/597
- samabed
- Posts: 16
- Joined: Fri Jul 05, 2013 11:21 am
Re: Mini Thermal printer SCI
I have been trying to find the matching connectors for my PCB for the printer's connector to no avail.
could you please give the connectors manufacturer and part numbers for both 2-pin and 3-pin connectors.
better yet iif you could give me the mating connectors part number.
Thanks,
Sam
could you please give the connectors manufacturer and part numbers for both 2-pin and 3-pin connectors.
better yet iif you could give me the mating connectors part number.
Thanks,
Sam
Please be positive and constructive with your questions and comments.