Files
foam-cutter/Software_folder/manual_makerbot/manual_makerbot.pde

26 lines
448 B
Plaintext

/*
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);
}