Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A lightweight G-code generation framework in Haxe

License

helkebir/hx-gcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hx-gcode

A lightweight G-code generation framework in Haxe, inspired my mecode.

Getting Started

Prerequisites

Haxe 4.0 or later.

Note: To use sockets and serial communication, as well as file input/output, your target needs to be one of the "sys"-targets (see Haxe API - Sys).

Quick Start

  1. Clone this repository:
git clone https://github.com/helkebir/hx-gcode
cd hx-gcode
  1. Alter Main.hx to your needs:
class Main {
    static function main() {
        var g = new GCode();
        g.init();

        g.setup();
        g.move(0, 1, 2, 10);
        g.move(5, 5, 2, 5);
        g.home(1);
        g.teardown();
    }
}
  1. Compile and run (we use HashLink here):
haxe compile.hxml
hl main.hl

Basic Usage

See Main.hx for a small demo - more elaborate examples and documentation to be developed.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

This code is heavily inspired by Jack Minardi's awesome mecode G-code generator.

About

A lightweight G-code generation framework in Haxe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages