Adafruit_Thermal.h

Hello guys, can you make / write a simple code which when I pressed a button, the Thermal Printer print "Hello World!, Arduino!"

NELMAN:
Hello guys, can you make / write a simple code which when I pressed a button, the Thermal Printer print “Hello World!, Arduino!”

if(digitalRead(somePin) == someState)
{
   printOnThermalPrinter("Hello World!, Arduino!");
}

All that is left for you to do is define somePin and someState, and write the function. Should be trivial, after I did all the hard work.