MIllis , int not refresh value

Datman:
Mah... It should work...
Please consider that I/O 0 and I/O 1 are Rx and Tx! There could be interference between LED state and serial monitor.
Instead of currentTime you could use millis() directly.

Where do you see io 0 and io 1?