Can’t set Setting Control Parameter Command in ESC/POS thermal printer

I want to increase the heating time of the dots so that the printer prints darker. But the command (from CSN-A2+User+Manual) that should be responsible for this does not accept all parameters, for some reasone. Instead, it only accepts the first one and does nothing.


#include <SoftwareSerial.h>
SoftwareSerial printer(13,12);

void setup() {
  printer.begin(9600);
  byte i[] =  {27, 55, 64, 64, 64}; // ESC 7 n1 n2 n3
  printer.write(i, sizeof(i));      // sends bytes one by one
  printer.println("Hello World");   // the brightness of the text should change
}

void loop() {}
// outputs: @@Hello World
// the first parameter was accepted, but the other 2 were not, so @@ is output
// 64 (decimal) is "@" in ASCII text

Here is the printer: https://aliexpress.ru/item/1005005402581719.html?spm=a2g2w.orderdetail.0.0.72b44aa6qTXcaN&sku_id=12000032916453071

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.