Migrating files from the the Honnun project to a separate project focused on the CNC foamcutter.
This commit is contained in:
25
Software_folder/manual_makerbot/manual_makerbot.pde
Normal file
25
Software_folder/manual_makerbot/manual_makerbot.pde
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
Quick test for makerbot hardware
|
||||
*/
|
||||
|
||||
const int pin_step = 28;
|
||||
const int pin_dir = 27;
|
||||
const int pin_enable = 26;
|
||||
|
||||
|
||||
void setup() {
|
||||
pinMode(pin_step, OUTPUT);
|
||||
pinMode(pin_dir, OUTPUT);
|
||||
pinMode(pin_enable, OUTPUT);
|
||||
|
||||
// turn on the motor and set a direction
|
||||
digitalWrite(pin_dir, LOW);
|
||||
digitalWrite(pin_enable, LOW);
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
digitalWrite(pin_step, LOW);
|
||||
delay(10);
|
||||
digitalWrite(pin_step, HIGH);
|
||||
}
|
||||
Reference in New Issue
Block a user