Initial Release

Eggduino - Arduino Firmware for arduinobased Spherebot
direct Integration in Inkscape
This commit is contained in:
cocktailyogi
2014-04-17 20:46:46 +02:00
commit d2a91d3644
9 changed files with 2108 additions and 0 deletions

12
Helper_Functions.ino Normal file
View 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);
}