A lightweight G-code generation framework in Haxe, inspired my mecode.
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).
- Clone this repository:
git clone https://github.com/helkebir/hx-gcode
cd hx-gcode- Alter
Main.hxto 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();
}
}- Compile and run (we use HashLink here):
haxe compile.hxml
hl main.hlSee Main.hx for a small demo - more elaborate examples and documentation to be developed.
- Hamza El-Kebir - helkebir
This project is licensed under the MIT License - see the LICENSE.md file for details.
This code is heavily inspired by Jack Minardi's awesome mecode G-code generator.