Initial Release
Eggduino - Arduino Firmware for arduinobased Spherebot direct Integration in Inkscape
This commit is contained in:
12
Helper_Functions.ino
Normal file
12
Helper_Functions.ino
Normal file
@@ -0,0 +1,12 @@
|
||||
void initHardware(){
|
||||
pinMode(enableRotMotor, OUTPUT);
|
||||
pinMode(enablePenMotor, OUTPUT);
|
||||
rotMotor.setMaxSpeed(1000.0);
|
||||
rotMotor.setAcceleration(10000.0);
|
||||
penMotor.setMaxSpeed(1000.0);
|
||||
penMotor.setAcceleration(10000.0);
|
||||
digitalWrite(enableRotMotor, HIGH) ;
|
||||
digitalWrite(enablePenMotor, HIGH) ;
|
||||
penServo.attach(servoPin);
|
||||
penServo.write(penUpPos);
|
||||
}
|
||||
Reference in New Issue
Block a user