TimFr:
I am trying to transfer some pulse reading over the serial port. When I tried
Serial.println(millis );
I got an error
Well, that code seems to be trying to print a function pointer, which doesn't seem like a useful thing to do. If you intended to print the function's return value, you could achieve that by something like this: Serial.println(millis());
TimFr:
I am trying to transfer some pulse reading over the serial port. When I tried
Serial.println(millis );
I got an error
Well, that code seems to be trying to print a function pointer, which doesn't seem like a useful thing to do. If you intended to print the function's return value, you could achieve that by something like this: Serial.println(millis());
Thank's Peter, it the 2 bracket I have missed out.
johnwasser:
I suspect the problem is using Serial.println() inside rpm_fun(). I'd be surprised if serial output worked inside an interrupt service routine.
johnwasser:
I suspect the problem is using Serial.println() inside rpm_fun(). I'd be surprised if serial output worked inside an interrupt service routine.
John, that's the only serial print that did work.
Perhaps that function never completed. That would lock up everything.