Commit 0e30fff3 authored by Tim Soderstrom's avatar Tim Soderstrom

Rotary for attiny85 works!

parent 9e620149
......@@ -60,9 +60,9 @@ unsigned long previousCoastMillis = 0;
int motorSpeedCurrent = 0;
bool motorDirection = FORWARD;
// If we need to coast
bool motorCoast = true;
bool motorCoast = false;
// If we are actively coasting
bool motorCoasting = true;
bool motorCoasting = false;
/*******
* Code
......@@ -73,9 +73,10 @@ void setup()
pinMode(motorSpeed, OUTPUT);
pinMode(motorX, OUTPUT);
pinMode(motorY, OUTPUT);
analogWrite(motorSpeed, 0);
digitalWrite(motorX, LOW);
/* Start forward at start speed */
analogWrite(motorSpeed, toSpeed(MOTOR_START_PCT));
digitalWrite(motorX, HIGH);
digitalWrite(motorY, LOW);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment