void Adafruit_Thermal::inverseOff(){ #if PRINTER_FIRMWARE >= 268 writeBytes(ASCII_GS, 'B', 0); #else unsetPrintMode(INVERSE_MASK); #endif }
void Adafruit_Thermal::setFont(char value) { if (toupper(value) == 'B') { setPrintMode(FONT_MASK); } else { unsetPrintMode(FONT_MASK); } }
void Adafruit_Thermal::setSize(char value) { switch(toupper(value)) { default: // Small: standard width and height unsetPrintMode(DOUBLE_WIDTH_MASK|DOUBLE_HEIGHT_MASK); doubleWidthOff(); doubleHeightOff(); break; case 'M': // Medium: double height doubleHeightOn(); doubleWidthOff(); break; case 'L': // Large: double width and height doubleHeightOn(); doubleWidthOn(); break; } }
void Adafruit_Thermal::boldOff(){ unsetPrintMode(BOLD_MASK); }
void Adafruit_Thermal::strikeOff(){ unsetPrintMode(STRIKE_MASK); }
void Adafruit_Thermal::doubleWidthOff(){ unsetPrintMode(DOUBLE_WIDTH_MASK); }
void Adafruit_Thermal::doubleHeightOff(){ unsetPrintMode(DOUBLE_HEIGHT_MASK); }
void Adafruit_Thermal::upsideDownOff(){ unsetPrintMode(UPDOWN_MASK); }
void Adafruit_Thermal::inverseOff(){ unsetPrintMode(INVERSE_MASK); }