Help with Syntex of an ESC command for printer
good day,
im still kind of new c++ coding , use hand formatting line of code. have thermo printer adafruit. need darken print , there esc command need send printer via serial3 hardware port on mega 2560 controller. according manual need send
"esc 7 n1 n2 n3". n1 - n3 can assigned value of 0 - 255.
so far have tried serial3.print (esc 7 7 150 60). resulted in "esc not declared in scope".
so. declared "int esc = 27". gives me "expected ')' before numeric constant".
could me on right track.
thanks
paul
im still kind of new c++ coding , use hand formatting line of code. have thermo printer adafruit. need darken print , there esc command need send printer via serial3 hardware port on mega 2560 controller. according manual need send
"esc 7 n1 n2 n3". n1 - n3 can assigned value of 0 - 255.
so far have tried serial3.print (esc 7 7 150 60). resulted in "esc not declared in scope".
so. declared "int esc = 27". gives me "expected ')' before numeric constant".
could me on right track.
thanks
paul
try putting double quotes around string
"this string"
if want have weird characters in string such escape can't type, investigate \xxx notation
"this string"
if want have weird characters in string such escape can't type, investigate \xxx notation
Arduino Forum > Using Arduino > Programming Questions > Help with Syntex of an ESC command for printer
arduino
Comments
Post a Comment