Printlib GB

From GameBrew
Printlib
Printlibgb.png
General
AuthorDragonEagle, Shen Mansell
TypeSamples
Version2000
LicenseMixed
SystemDMG (GBDK)
Last Updated2000/12/06
Links
Download
Website
Source

This is the GBDK printer library by DragonEagle, extended by Shen Mansell to work correctly.

Looking at the example code should allow you to get the program going, and for more help have a look on the net for GB Printer docs.

to print:

 SendPrinterCommand(PRINTER_INIT);

 do this 20x18 times
 {
   PrintTileData (p_data); // where p_data is 16 bytes representing a tile
 }

 SendPrinterCommand(PRINTER_EOF); 
 SendPrinterCommand(PRINTER_START);

Credits

Thanks to StarTreky for pointing out some errors.

External links

Advertising: