Need help with an Expression please.

I want to insert an Expression to make this go from 0 to 1 within 1 second, and once it reaches 1 go back from 1 to 0 within another second. I would greatly appreciate your help! Thanks in advance.
Image here:
https://imgur.com/ClC3D7c
Image here:
https://imgur.com/ClC3D7c