forked from jbergen/ESCPos-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2a758ea
Showing
37 changed files
with
4,837 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
the data folder: | ||
If your library is using files like images, sound files, | ||
any data file, etc., put them into the data folder. | ||
When coding your library you can use processing's internal loading | ||
functions like loadImage(), loadStrings(), etc. to load files | ||
located inside the data folder into your library. | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import ESCPos.*; | ||
import processing.serial.*; | ||
|
||
Serial port; | ||
ESCPos printer; | ||
|
||
void setup(){ | ||
//output a list of available serial ports | ||
//println(Serial.list()); | ||
|
||
//start Serial connection | ||
port = new Serial(this, Serial.list()[0], 9600); | ||
//instantiate ESCPos library | ||
printer = new ESCPos(this, port); | ||
|
||
printer.printAndFeed("Hello World",4); | ||
|
||
//printer.printSampler(); | ||
|
||
exit(); | ||
} | ||
|
||
void draw(){ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||
<head> | ||
<title>ESCPos</title> | ||
<meta name="description" content="a library for the programming environment processing" /> | ||
<meta name="keywords" content="processing.org, library" /> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
<meta http-equiv="Content-Language" content="en-us" /> | ||
<meta name="ROBOTS" content="index,follow,archive" /> | ||
<meta http-equiv="imagetoolbar" content="false" /> | ||
<meta name="MSSmartTagsPreventParsing" content="true" /> | ||
<meta name="author" content="##author##" /> | ||
<meta name="Rating" content="General" /> | ||
<meta name="revisit-after" content="7 Days" /> | ||
<meta name="doc-class" content="Living Document" /> | ||
<link rel="stylesheet" type="text/css" href="./stylesheet.css"> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
|
||
<div id="header"> | ||
<h1>ESCPos</h1> | ||
</div> | ||
|
||
<div id="menu" class="clear"> | ||
<ul> | ||
<li><a href="#about">About</a> \ </li> | ||
<li><a href="#download">Download</a> \ </li> | ||
<li><a href="#download">Installation</a> \ </li> | ||
<li><a href="#examples">Examples</a> \ </li> | ||
<li><a href="./reference/index.html" target="_blank">Reference</a></li> | ||
<!-- <li><a href="#demos">Demos</a> \ </li> --> | ||
<!-- <li><a href="#misc">Misc</a> \ </li> --> | ||
<!-- <li><a href="#images">Images</a> \ </li> --> | ||
</ul> | ||
</div> | ||
|
||
<div id="content" class="clear"> | ||
|
||
<div id="about"> | ||
<h2>ESCPos</h2> | ||
<p> | ||
A library by <a href="##yourLink##">Joseph Bergen</a> for the programming environment <a href="http://www.processing.org" target="_blank">processing</a>. Last update, 06/22/2011. | ||
</p> | ||
<p> | ||
Feel free to replace this paragraph with a description of the library. Contributed libraries are developed, documented, and maintained by members of the Processing community. Further directions are included with each library. For feedback and support, please post to the Discourse. We strongly encourage all libraries to be open source, but not all of them are. | ||
</p> | ||
</div> | ||
|
||
|
||
|
||
<div id="download" class="clear"> | ||
<h2>Download</h2> | ||
<p> | ||
Download ESCPos version 0.1.1 in | ||
<a href="./download/ESCPos-0.1.1.zip">.zip format</a>. | ||
</p> | ||
<h2>Installation</h2> | ||
<p> | ||
Unzip and put the extracted ESCPos folder into the libraries folder of your processing sketches. Reference and examples are included in the ESCPos folder. | ||
</p> | ||
</div> | ||
|
||
|
||
<div id="resources"> | ||
<p><strong>Keywords</strong> ?</p> | ||
<p><strong>Reference</strong>. Have a look at the javadoc reference <a href="./reference/index.html" target="_blank">here</a>. a copy of the reference is included in the .zip as well.</p> | ||
<p><strong>Source</strong>. The source code of ESCPos is available at <a href="http://code.google.com/p/yourProject">google code</a>, and its repository can be browsed <a href="http://code.google.com/p/yourProject/source/browse/" target="_blank">here</a>.</p> | ||
</div> | ||
|
||
<div id="examples" class="clear"> | ||
<h2>Examples</h2> | ||
<p>Find a list of examples in the current distribution of ESCPos, or have a look at them by following the links below.</p> | ||
<ul> | ||
<li><a href="examples/Hello/Hello.pde">Hello</a></li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<div id="info"> | ||
<h2>Tested</h2> | ||
<p> | ||
<!-- on which platform has the library been tested? --> | ||
<strong>Platform</strong> osx,windows | ||
|
||
<!-- which processing version did you use for testing your library? --> | ||
<br /><strong>Processing</strong> ? | ||
|
||
<!-- does your library depend on any other library or framework? --> | ||
<br /><strong>Dependencies</strong> ? | ||
</p> | ||
</div> | ||
|
||
|
||
<!-- use the demos section for a list of applets run in a browser. --> | ||
<!-- | ||
<div id="demos" class="clear"> | ||
<h2>demos</h2> | ||
<p> | ||
find a list of online applet demos below. | ||
<ul> | ||
<li><a href="./applets/demo/index.html">demo</a></li> | ||
</ul> | ||
</p> | ||
</div> | ||
--> | ||
|
||
<!-- use the misc section for other relevant information. Activate the link to the misc section in the menu above. --> | ||
<!-- | ||
<div id="misc" class="clear"> | ||
<p></p> | ||
</div> | ||
--> | ||
|
||
<!-- use the images/screenshots section. Activate the link to the misc section in the menu above. --> | ||
<!-- | ||
<div id="images" class="clear"> | ||
</div> | ||
--> | ||
|
||
|
||
<br class="clear" /> | ||
</div> | ||
|
||
<div id="footer"> | ||
<p>by Joseph Bergen, (c) 2011.</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.