Simple overview of use/purpose.
An in-depth paragraph about your project and overview of use.
| #!/usr/bin/python | |
| import sys | |
| import re | |
| import os | |
| import sys | |
| sourceFile = sys.argv[1] | |
| # Read the ENTIRE g-code file into memory | |
| with open(sourceFile, "r") as f: |
| /* | |
| * Copyright (c) 2019 Michael Krane | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining | |
| * a copy of this software and associated documentation files (the | |
| * "Software"), to deal in the Software without restriction, including | |
| * without limitation the rights to use, copy, modify, merge, publish, | |
| * distribute, sublicense, and/or sell copies of the Software, and to | |
| * permit persons to whom the Software is furnished to do so, subject to | |
| * the following conditions: |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import javafx.beans.property.DoubleProperty; | |
| import javafx.beans.property.DoublePropertyBase; | |
| import javafx.beans.property.ReadOnlyIntegerWrapper; | |
| import javafx.geometry.Pos; |
| import javafx.application.Application; | |
| import javafx.beans.property.ObjectProperty; | |
| import javafx.beans.property.SimpleObjectProperty; | |
| import javafx.geometry.Insets; | |
| import javafx.geometry.Point2D; | |
| import javafx.geometry.Pos; | |
| import javafx.geometry.Rectangle2D; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.control.Hyperlink; |
| /* Delayを使わないArduino時計 | |
| Arduinoにはシステム時刻があって、RTCを持たないArduinoでは | |
| 起動時必ず1970/01/01T00:00:00Z(UNIX epoch)に初期化されています | |
| Arduinoのコンパイラでは__DATE__定数と__TIME__定数が使えますので、 | |
| コンパイル時に埋め込まれるこれらの定数を利用してシステム時刻を | |
| 設定します。 | |
| 当然ながら、コンパイル時にコンパイラがあるシステムの時刻が定数 | |
| として埋め込まれますので、コンパイル直後以外のArduinoリセット時 | |
| には時刻が狂うことになります。 | |
| DS1307RTCのライブラリを参考にした。 |
| /* | |
| * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. | |
| * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
| * | |
| * | |
| * | |
| * | |
| * | |
| * | |
| * |
| import javafx.application.Application; | |
| import static javafx.application.Application.launch; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.control.ScrollPane; | |
| import javafx.scene.image.Image; | |
| import javafx.scene.image.ImageView; | |
| import javafx.scene.layout.Pane; |