Printer.prototype.upsideDown = function(onOff){
    var commands = [27, 123, (onOff === true ? 1 : 0)];
    return this.writeCommands(commands);
};