Nuts About Time Clock Program Control
home | videos | construction | control | lab book | team
return to flowcharts

Version 2 Cricket 3 Code

; John Galinato
; May 2002
; This cricket is dedicated to 
; controlling the nutheads.


; Each time a 5 or 10 is received,
; the nutheads will take turns dancing.

; All nutheads will dance
; for 10 seconds when a 20
; is received (time is set)

to clock-nutheads
autostart-on
loop
[
if (ir = 5)
[a, onfor 50]
if (ir = 10)
[b, onfor 50]
if (ir = 20)
[ab, onfor 100]
]
end
stop



Build-It-Yourself, 426 Broadway, Cambridge, MA 02138 Tel: (617) 547-9705 Email