agreed, thats why i am thinking to use thermal printer with it
i used thermal printer with uart
i am just asking, whether it can be done with i2c or not
dear expert, i am asking whether thermal printer can be used with SDA/SCL or not
if yes, any hint regarding the same.
because i have never heard the same
not asking any coding, schematic etc.
Unlikley. I2C is really designed for comms between chips in close proximity.
I've not come across a thermal printer with an I2C interface. Most thermal printers have some history with Point Of Sale (POS) systems where the usual communication route would be either parallel, serial or USB.
If she literally has no pins left at all, there's not much hope for serial, or I'd suggest trying a software serial solution. You can get them that only send so need only one pin.
I did see that ppl have interfaced to parallel ports on printers using an I2C port expander.
2 rx/tx for 2 Nanos, no issue, its working OK
many more items connected, trying to use PCF8575
thinking to use 1/2 pins of PCF8575 for Thermal printer
thats why, i am asking....
You could bit bang a software serial port through the PCF8575 pins but you would have to write your own code to do it. The standard softwareserial library is designed to work with pins on the micro rather than an i/o expander.
Your baud rate would be limited if you tried to bit bang over I2C - as a wild guess, maybe 4800 or 9600 baud, possibly even lower.