Hey guys,
I couldn't make a proper delay function and stripped down my code to:
int timer0 = millis();
void setup() {
Serial.begin(9600);
}
void loop(){
Serial.println(timer0);
}
With this code my Serial monitor only returns 0's.
Some details:
- Arduino Nano
- Monitor baudrate is selected at 9600
- I've tried other data types for timer0 (like byte, long, unsigned long etc.)
- I've tried setting: int time = millis() and printing this gave the same result
Is millis broken or am I mistaken?