davedarko / GBPrinter

Arduino Library for Gameboy Printer
38 stars 9 forks source link

Added support for serial transfer of images #2

Open octavifs opened 9 years ago

octavifs commented 9 years ago

Hi davedarko,

I've forked your repo on octavifs/GBPrinter and added support to transfer images from the PC to the printer.

I've created a go client that converts an image (png, jpg or gif) to the binary format of the printer and then sends it through serial port. The arduino takes that input and sends it using the printer protocol (as you and Furrtek wrote). The sketch and library were also heavily rewritten. It is now a state machine that can keep receiving and printing tasks indefinitely.

Although some parts need a bit of extra work, such as error handling and finetuning the dither algorithm to improve the printing results, the project is very much usable. There are videos and results linked on the fork README.

I thought you might find this interesting, so I'm raising this "issue". I'd be glad to discuss the changes I've done on my fork anytime.

Happy hacking!

guysoft commented 2 years ago

Tried that and it didn't work. Might be the complicated go stack and it does not seem to talk right to the printer. I managed so far to get an esp8266 to send prints. Which means that I think the best path from there is to write some wifi client, which would make the gameboy printer a wifi printer! With sd card support. My work is at: https://github.com/guysoft/The-Arduino-SD-Game-Boy-Printer/tree/esp8266