Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name
- @inputs Start
- @outputs Time Sec ButtonPush
- @persist
- @trigger
- Time = 10
- if(Start == 1){
- timer("Time",1000)
- if(clk("Time")){
- while(Sec < 11){
- Time = Time - Sec
- Sec = Sec + 1
- if(Sec == 10){
- ButtonPush = 0
- Start = 0
- stoptimer("Timer")
- Time = 10
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment