I want to attach my GOOJPRT Thermal Printer (I believe model QR701, communication RS232) to my ESP32 but I cannot seem to get them working.
I tried all the Adafruit Thermal Printer library examples but get the same error each and every time:
"Error compiling for board ESP32 Dev Module."
I guess the libraries are not meant for the ESP32. I also tried the "Thermal Printer Library" by Larry Bank (which should be compatible with the ESP32 according to its github docs) but there I cannot figure out how to connect the wires of thermal printer to the ESP32 correctly.
Of course, I do not ask for a specific solution, I am just looking for someone to point me in the right direction!
Full error message from Adafruit Thermal Printer examples:
C:\Users\Thomas\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:27: fatal error: avr/interrupt.h: No such file or directory compilation terminated. Multiple libraries were found for "Adafruit_Thermal.h" Used: C:\Users\Thomas\Documents\Arduino\libraries\Adafruit_Thermal_Printer_Library Not used: C:\Users\Thomas\Documents\Arduino\libraries\Adafruit-Thermal-Printer-Library-master Multiple libraries were found for "SoftwareSerial.h" Used: C:\Users\Thomas\Documents\Arduino\libraries\SoftwareSerial-master Not used: C:\Users\Thomas\Documents\Arduino\libraries\EspSoftwareSerial exit status 1 Error compiling for board ESP32 Dev Module
Second error message from Adafruit Thermal Printer example after removing the manually installed SoftwareSerial.h:
A_printertest:21:28: fatal error: SoftwareSerial.h: No such file or directory Multiple libraries were found for "Adafruit_Thermal.h" compilation terminated. Used: C:\Users\Thomas\Documents\Arduino\libraries\Adafruit_Thermal_Printer_Library Not used: C:\Users\Thomas\Documents\Arduino\libraries\Adafruit-Thermal-Printer-Library-master exit status 1 SoftwareSerial.h: No such file or directory