-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMachine.py
More file actions
30 lines (26 loc) · 1 KB
/
Copy pathMachine.py
File metadata and controls
30 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ------------------------------------------------------------------
# Hardware import TEMPLATE - replace these commented examples with
# the actual imports used by your platform / hardware.
#
# Examples:
# - USB/serial-based controllers:
# import serial
# - If you're using the DPi modules, uncomment or replace below:
# from dpeaDPi.DPiComputer import DPiComputer
# from dpeaDPi.DPiStepper import DPiStepper
#
# TODO: Replace the placeholders above with your project's actual
# imports. Then, in Machine.__init__, initialize the appropriate
# objects (for example self.dpiComputer and self.dpiStepper) so the rest of
# this class can call into your hardware layer.
# ------------------------------------------------------------------
class Machine:
def __init__(self, **kwargs):
#TODO: Initialize your hardware interfaces here
pass
def halt(self):
#TODO: Implement halt functionality
pass
def startup(self):
#TODO: Implement startup functionality
pass