I posted a USB printer driver with ESC/POS library for the Teensy 3.6 USB host port. It works on my $27 USB receipt printer but I do not know how well it works on any other printer. I doubt an inkjet or laser printer will work. I assume they require vendor specific drivers.
https://github.com/gdsports/USBPrinter_t36
https://github.com/gdsports/ESC_POS_Printer
ESC/POS is the printer control language for small point-of-sale receipt printers. The library is based on the Adafruit Thermal printer library but with all the code specific to the Adafruit mini thermal printer removed.
https://github.com/gdsports/USBPrinter_t36
https://github.com/gdsports/ESC_POS_Printer
ESC/POS is the printer control language for small point-of-sale receipt printers. The library is based on the Adafruit Thermal printer library but with all the code specific to the Adafruit mini thermal printer removed.