More flip-flop tweaks
This commit is contained in:
parent
e124983e05
commit
96331e0cfd
|
@ -20,9 +20,11 @@
|
|||
(active-state))))
|
||||
(inactive-state))
|
||||
|
||||
(spawn (on (asserted (active)) (send! (stdout-message "Flip-flop is active")))
|
||||
(on (retracted (active)) (send! (stdout-message "Flip-flop is inactive")))
|
||||
(spawn #:name 'monitor-flip-flop
|
||||
(on (asserted (active)) (send! (stdout-message "Flip-flop is active")))
|
||||
(on (retracted (active)) (send! (stdout-message "Flip-flop is inactive"))))
|
||||
|
||||
(spawn #:name 'periodic-toggle
|
||||
(field [next-toggle-time (current-inexact-milliseconds)])
|
||||
(on (asserted (later-than (next-toggle-time)))
|
||||
(send! (toggle))
|
||||
|
|
Loading…
Reference in New Issue