Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-11-27 00:30:25 +0300
committerAlessandro Ranellucci <aar@cpan.org>2014-11-27 00:30:25 +0300
commit11dd67ab34b8488aae761afe715a4838725306d8 (patch)
tree0e79b53755be2051698c3350c0c862741d7bb64b /utils
parent43cbad8867593bc39c66199e910a94778c971ba0 (diff)
Initial work for G-code sender and more intensive usage of Boost
Diffstat (limited to 'utils')
-rw-r--r--utils/send-gcode.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/send-gcode.pl b/utils/send-gcode.pl
new file mode 100644
index 000000000..63affd506
--- /dev/null
+++ b/utils/send-gcode.pl
@@ -0,0 +1,26 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+}
+
+use Slic3r;
+
+my $serial = Slic3r::GCode::Sender->new($ARGV[0], $ARGV[1]);
+
+$serial->send($ARGV[2]);
+
+exit;
+
+while (1) {
+ $serial->send("1");
+ sleep 1;
+ $serial->send("0");
+ sleep 1;
+}
+
+__END__