README
Links: http://222.146.7.157/support/firmware/craftrobo/ http://222.146.7.157/support/manuals/craftrobo/ http://222.146.7.157/support/software/craftrobo/ https://ohthehugemanatee.net/2011/07/gpgl-reference-courtesy-of-graphtec/ Chip: F2215UTE16V H8S/2215 Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2200 Series http://am.renesas.com/products/mpumcu/h8s/h8s2200/h8s2215/soft_tools_index.jsp http://www.teamfdi.com/excess-inventory/Datasheets/RENESAS%20DF2215RUBR24V.pdf http://www.kpitgnutools.com/index.php ? http://www.renesas.com/products/mpumcu/h8s/h8s2200/h8s2215/index.jsp http://paulbourke.net/dataformats/hershey/
Documentation
Index ¶
- Constants
- Variables
- func BootUpgrade(c *bufio.ReadWriter) string
- func Calibrate(c *bufio.Writer)
- func DrawMarks(c *bufio.Writer, offset, size Point, length int)
- func DrawPic(c *bufio.Writer)
- func EasterEgg(c *bufio.Writer)
- func EnableDebug(c *bufio.Writer)
- func GoHome(c *bufio.Writer)
- func Home(c *bufio.Writer)
- func Init(c *bufio.Writer)
- func Initialize(c *bufio.ReadWriter, mid int, o Orientation)
- func Origin(c *bufio.Writer)
- func Print(c *bufio.Writer, in io.Reader, scale Unit)
- func Ready(c *bufio.ReadWriter) bool
- func Recv(c *bufio.Reader) string
- func Send(c *bufio.Writer, a interface{})
- func StatusWord(c *bufio.ReadWriter) string
- func TestCut(c *bufio.Writer)
- func TestLoop(c *bufio.Writer)
- func TestPattern(c *bufio.Writer)
- func UpdateFirmware(c *bufio.ReadWriter) bool
- func Version(c *bufio.ReadWriter) string
- type Device
- type Direction
- type Font
- type Glyph
- type LP
- type LineStyle
- type Media
- type Orientation
- type Page
- type Path
- func (ph Path) Bezier(c *bufio.Writer, a int)
- func (ph Path) Circle(c *bufio.Writer)
- func (ph Path) Circle3P(c *bufio.Writer)
- func (ph Path) CircleRelative(c *bufio.Writer)
- func (ph Path) Curve(c *bufio.Writer, a int)
- func (ph Path) CurveRelative(c *bufio.Writer, a int)
- func (ph Path) Draw(c *bufio.Writer)
- func (ph Path) DrawRelative(c *bufio.Writer)
- func (ph Path) Ellipse(c *bufio.Writer)
- func (ph Path) Line(c *bufio.Writer)
- func (ph Path) Scale(f Unit) (ret Path)
- type Point
- func (p Point) Calibration(c *bufio.Writer)
- func (p Point) CuttingArea(c *bufio.Writer)
- func (p Point) Draw(c *bufio.Writer)
- func (p Point) DrawRelative(c *bufio.Writer)
- func (p Point) LineStyle(c *bufio.Writer)
- func (p Point) LowerLeft(c *bufio.Writer)
- func (p Point) Move(c *bufio.Writer)
- func (p Point) MoveRelative(c *bufio.Writer)
- func (p Point) Offset(c *bufio.Writer)
- func (p Point) Scale(f Unit) Point
- func (p Point) SearchMarks(c *bufio.ReadWriter, auto bool) bool
- func (p Point) String() (s string)
- func (p Point) UpperRight(c *bufio.Writer)
- type Set
- type Triple
- type Unit
- func (u Unit) DistanceCorrection(c *bufio.Writer)
- func (u Unit) Force(c *bufio.Writer)
- func (u Unit) LineScale(c *bufio.Writer)
- func (u Unit) Media(c *bufio.Writer)
- func (u Unit) Origin(c *bufio.Writer)
- func (u Unit) Overcut(c *bufio.Writer)
- func (u Unit) RegMarkLen(c *bufio.Writer)
- func (u Unit) Speed(c *bufio.Writer)
- func (u Unit) String() string
- func (u Unit) TrackEnhancing(c *bufio.Writer)
- func (u Unit) UnknownFE(c *bufio.Writer)
- func (u Unit) UnknownFQ(c *bufio.ReadWriter) Unit
Constants ¶
View Source
const ( NUL = 0x00 ETX = 0x03 // End of Text ESC = 0x1B // Escape FS = 0x1C // File Separator )
Variables ¶
View Source
var Medias = []Media{
{
Descr: "Card without Craft Paper Backing",
ID: 100,
Speed: 10,
Force: 27,
Overcut: 18,
},
{
Descr: "Card with Craft Paper Backing",
ID: 101,
Speed: 10,
Force: 27,
Overcut: 18,
},
{
Descr: "Vinyl Sticker",
ID: 102,
Speed: 10,
Force: 10,
Overcut: 18,
},
{
Descr: "Film Labels",
ID: 106,
Speed: 10,
Force: 14,
Overcut: 18,
},
{
Descr: "Magnetic Sheet",
ID: 107,
Speed: 10,
Force: 12,
Overcut: 18,
},
{
Descr: "Thick Media",
ID: 111,
Speed: 10,
Force: 27,
Overcut: 18,
},
{
Descr: "Thin Media",
ID: 112,
Speed: 10,
Force: 2,
Overcut: 18,
},
{
Descr: "Pen",
ID: 113,
Speed: 10,
Force: 10,
Overcut: 0,
},
{
Descr: "Custom",
ID: 300,
Speed: 10,
Force: 10,
Overcut: 18,
},
}
Functions ¶
func Initialize ¶
func Initialize(c *bufio.ReadWriter, mid int, o Orientation)
func Ready ¶
func Ready(c *bufio.ReadWriter) bool
func StatusWord ¶
func StatusWord(c *bufio.ReadWriter) string
func UpdateFirmware ¶
func UpdateFirmware(c *bufio.ReadWriter) bool
func Version ¶
func Version(c *bufio.ReadWriter) string
Types ¶
type Device ¶
type Device interface { Close() Handle() *bufio.ReadWriter }
type LP ¶
func (LP) Handle ¶
func (d LP) Handle() *bufio.ReadWriter
type Media ¶
type Orientation ¶
type Orientation int
const ( Portrait Orientation = iota Landscape )
func (Orientation) Orientation ¶
func (o Orientation) Orientation(c *bufio.Writer)
type Point ¶
type Point struct {
X, Y Unit
}
func Calibration ¶
func Calibration(c *bufio.ReadWriter) Point
func DistanceCorrection ¶
func DistanceCorrection(c *bufio.ReadWriter) Point
func LowerLeft ¶
func LowerLeft(c *bufio.ReadWriter) Point
func Offset ¶
func Offset(c *bufio.ReadWriter) Point
func UpperRight ¶
func UpperRight(c *bufio.ReadWriter) Point
type Triple ¶
type Triple struct {
U, V, W Unit
}
func CallGin ¶
func CallGin(c *bufio.ReadWriter) Triple
func Gin ¶
func Gin(c *bufio.ReadWriter) Triple