Bare print from SD code

47 views
Skip to first unread message

cubert

unread,
Mar 13, 2015, 7:30:35 AM3/13/15
to gfr-p...@googlegroups.com
Hi,
anyone has a simple print to SD function for arduino? What is the content of the downloaded TMP file?

James Adam

unread,
Mar 16, 2015, 6:26:58 AM3/16/15
to gfr-p...@googlegroups.com
A while ago I contributed the `printBitmap` functions to the Adafruit arduino thermal printer library; you should be able to use the `Stream` variant to open a `File` on an SD card and print from that:


To answer your question about the TMP file, this is actually a raw series of commands to be sent directly to the printer, including initializing it, setting the thermal settings and then sending the correct bytes and bitmap information to make the printer produce the correct image. It’s not actually the bitmap itself, so it’s not suitable for use withe the `printBitmap` function, unfortunately.

— James


On 13 Mar 2015, at 11:30, cubert <theo...@gmail.com> wrote:

Hi,
anyone has a simple print to SD function for arduino? What is the content of the downloaded TMP file?

--
You received this message because you are subscribed to the Google Groups "Printer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gfr-printer...@googlegroups.com.
To post to this group, send email to gfr-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gfr-printer.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages