Hello guys i am stuck again with the thermal printer
My problem is the following, i want to print in page mode , for example the default beginning of the printer's printing is from left to right and i want to make it from bottom to up , its like vertical printing of sort , and when i use the commands it only print 0.5 of paper and nothing on it this is my code i will include the PDF also : http://support.epostraders.co.uk/support-files/documents/36/w3m-ESCPOS_Guide.pdf its on page 358. If someone could help me again , i am really stuck
THank you
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11, 0x20);
const String ESC = "\u001B";
const String GS = "\u001D";
const String BoldOff = ESC + "L" + "\x1B";
const String Boldon = ESC + "L" + "\x0C";
const String full = BoldOff + Boldon;
const String f = "d097 ";
int c = 0x0;
int h = 0;
int j = 0;
int p = 0;
int q = 0;
int w = 0;
int x = 0;
char good[] = "5µA";
const String z = "\x8D\xA8\xA3\xA0\xE0\xA0\xAD\xE2\xA8\xE0\xA0\xAC";
void setup() {
//Thermal.begin(9600);
// put your setup code here, to run once:
mySerial.begin(19200);
mySerial.write(0x1B);
mySerial.write(0x4A); //initilaze printer
mySerial.write(255);
mySerial.write(0x1B);
mySerial.write(0x40); //initilaze printer
//mySerial.write(0x1B);
//mySerial.write(0x4C); //select page mode
mySerial.write(0x1D);
mySerial.write(0x50); //set horizontal and vertival mottion units
mySerial.write(180);
mySerial.write(360);
mySerial.write(0x1B);
mySerial.write(0x57);
mySerial.write(h);
mySerial.write(j);
mySerial.write(w);
mySerial.write(q);
mySerial.write(240);
mySerial.write(p);
mySerial.write(200);
mySerial.write(x);
mySerial.println(0x1B);
mySerial.println(0x54);
mySerial.write(2);
mySerial.println("EEEEE");
mySerial.write(0x1B);
mySerial.write(0x4A); //initilaze printer
mySerial.write(255);
mySerial.println("\n\n\n");
mySerial.println("\x1B@\x1DV1"); //cut funtion
}
void loop() {
}