Heres the code I run
#include <AFMotor.h>
AF_DCMotor thrusterLeft(3, MOTOR12_1KHZ);
unsigned long time;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print("Time: ");
time = millis();
//prints time since program started
Serial.println(time);
// wait a second so as not to send massive amounts of data
delay(1000);
}
The output I get is:
Time: 0
and nothing else…
Also, removing the delay just repeats Time: 0 so millis isn’t incrementing
I’ve narrowed it down to the declaration of AF_DCMotor, does anyone know why?
setup: ubuntu 8.10, dec 328