Arduino TimeSerial

Posted by user541597 on Stack Overflow See other posts from Stack Overflow or by user541597
Published on 2010-12-23T20:01:02Z Indexed on 2010/12/28 11:54 UTC
Read the original article Hit count: 169

Filed under:
|

I am working with the TimeSerial sketch (an example in the Arduino Time library). Everything works fine, and I can get it to output the time continuously.

I am trying to set a switch which will read in a serial.read(). For example, I send 1 through the serial monitor, my sketch reads the one and runs a function I've created called resetfunc() which all it does is end serial and go back up to setup.

It then asks me to enter the T and time stamp but doesn't wait and just keeps printing time. Why is it still doing this? When I haven't sent it the T and timestamp through serial yet?

© Stack Overflow or respective owner

Related posts about c

    Related posts about arduino